]> 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>
Sun, 10 Jul 2011 13:55:04 +0000 (06:55 -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).

Change-Id: I8281b085eed2a6dec1f096ad9a6e96078c1e4af0
Reviewed-on: http://gerrit.openafs.org/4956
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-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 698b51255e524ecb8a52e5cc1ae9be5a8b511107..eb274d790c2b16536edb8c97da4919063a282c5c 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 e55e9f1dc05268416644b1a9b140fae37aa13c0a..aeb4751063d0d5523dc5b5b2c7a947def39a5718 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 c4f39d11786339cf775c200565663fb75f95f800..9302ac742a92d78dd52bc8278d775914d73efce2 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 d7948877aacc10dba79f5b3a903297f1cdd45cd5..69a4075a9587a1bc40129ab498351b795b94d8dd 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 def8afb2b6ed73843e741937a086be9af63c2399..8c813922170b2634b2d4b7a51422e3c7f47069bf 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 5b8a1293c2fbe9198641343cb12a0548f5c3a5e7..494a8bae64fd1709c076fd0e52d214f50bc2998e 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 0fcfc94508f15f97c24834265c1ba287c9288848..f805acecc3e9638bdc62e42ab8963865baf45aa1 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