Provide missing no-op definitions for the dummy implementation.
authorBruno Haible <bruno@clisp.org>
Thu, 17 Apr 2008 22:06:33 +0000 (00:06 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 17 Apr 2008 22:06:33 +0000 (00:06 +0200)
ChangeLog
lib/lock.h

index b2a1a05..79d573c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-04-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
+       gl_recursive_lock_destroy): Provide no-op definitions for the dummy
+       implementation.
+       Patch by Bruce Merry <bmerry@gmail.com>.
+
 2008-04-17  Simon Josefsson  <simon@josefsson.org>
 
        * doc/posix-functions/strftime.texi (strftime): Mention that %e
index 0b5f8e3..32a35bb 100644 (file)
@@ -1,5 +1,5 @@
 /* Locking in multithreaded situations.
-   Copyright (C) 2005-2007 Free Software Foundation, Inc.
+   Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -1062,6 +1062,7 @@ typedef int gl_lock_t;
 # define gl_lock_init(NAME)
 # define gl_lock_lock(NAME)
 # define gl_lock_unlock(NAME)
+# define gl_lock_destroy(NAME)
 
 /* ------------------------- gl_rwlock_t datatype ------------------------- */
 
@@ -1072,6 +1073,7 @@ typedef int gl_rwlock_t;
 # define gl_rwlock_rdlock(NAME)
 # define gl_rwlock_wrlock(NAME)
 # define gl_rwlock_unlock(NAME)
+# define gl_rwlock_destroy(NAME)
 
 /* --------------------- gl_recursive_lock_t datatype --------------------- */
 
@@ -1081,6 +1083,7 @@ typedef int gl_recursive_lock_t;
 # define gl_recursive_lock_init(NAME)
 # define gl_recursive_lock_lock(NAME)
 # define gl_recursive_lock_unlock(NAME)
+# define gl_recursive_lock_destroy(NAME)
 
 /* -------------------------- gl_once_t datatype -------------------------- */