]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
OpenBSD: Add <sys/queue.h> header for <sys/lockf.h>
authorAntoine Verheijen <antoine@ualberta.ca>
Fri, 8 Jul 2011 17:13:59 +0000 (11:13 -0600)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Jul 2011 04:29:21 +0000 (21:29 -0700)
On OpenBSD, the <sys/lockf.h> header requires the TAILQ_* macros
which are defined in <sys/queue.h>. The latter is not automatically
included by <sys/lockf.h> . This patch makes sure that it is
available by putting it into the OpenBSD-specific param.h files
(so as not to impact any other OS).

Reviewed-on: http://gerrit.openafs.org/4956
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 3559e5c8edd90ffb17e8f3b722ff014654bae336)

Change-Id: I75103e0fb327fec91ae00647598450a30cc2cf23
Reviewed-on: http://gerrit.openafs.org/4980
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/config/param.obsd42.h
src/config/param.obsd43.h
src/config/param.obsd44.h
src/config/param.obsd45.h
src/config/param.obsd46.h
src/config/param.obsd47.h
src/config/param.obsd48.h

index 50ddaf9d7721b2c8d6d64d65c389138ee37efd59..ee1834bf089b560e3d07c6c888b1ee85384e36b8 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index a792d0351f610a1c6696736b0d76f2299cb69393..b3458baa49fdf3e06936639839718b3a75d5f131 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index 6f87cf35c29d9eb6e68e7bfaa683844a2587942c..6cb67b5e1d743527ec7758b6b0451c24583edb12 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index c4758acdee0b9a85180b8d3150d9c5a8f494935c..dfcc8d01045952f1abab7ae312c34f8bfea1a29d 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index c77f51a091c81ba9c6f20bbfc772cec6550ec4d6..6a009f0e17da7c67ebaf7cdef3750014b383c81a 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index fdfc1bb724d34d38ee6ecd0ffbc401c1df1c4b56..1b93b573deb700ff631aeb3602bd9c00630b4db3 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index caba4f093e25cec199c0e874935bb75559adad96..ef5ed4ccdba8414e1463476080b6945ef6ce32f5 100644 (file)
 #include <afs/afs_sysnames.h>
 #endif
 
+#ifndef TAILQ_ENTRY
+#include <sys/queue.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR