]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
OpenBSD 4.6/4.7: Define curproc for rx_atomic.h.
authorAntoine Verheijen <antoine@ualberta.ca>
Mon, 21 Jan 2013 06:27:02 +0000 (23:27 -0700)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 21 Jan 2013 12:31:06 +0000 (04:31 -0800)
For OpenBSD 4.6 and 4.7, the rx_atomic.h header ultimately resorts
to the use of the default atomic routines that rely on MUTEX
macros. Those macros require that 'curproc' be defined, which in
turn requires the presence of the 'sys/proc.h' header. This patch
inserts that header into the param.h file for those systems.

Note that subsequent versions of OpenBSD have __sync_fetch_and_add
and don't require 'curproc' as a result.

Change-Id: I5131aed60631ef285eda92180ef65845165526b1
Reviewed-on: http://gerrit.openafs.org/8925
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/config/param.obsd46.h
src/config/param.obsd47.h

index 8c813922170b2634b2d4b7a51422e3c7f47069bf..0eed66e6eed10e0b75c5396df4b62b110bb657ec 100644 (file)
 #include <sys/queue.h>
 #endif
 
+#ifndef curproc
+#include <sys/proc.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR
index 494a8bae64fd1709c076fd0e52d214f50bc2998e..f1292b785d1c7ef32908d48fee5f0fcd9e3b0995 100644 (file)
 #include <sys/queue.h>
 #endif
 
+#ifndef curproc
+#include <sys/proc.h>
+#endif
+
 /* Extra kernel definitions (from kdefs file) */
 #ifdef _KERNEL
 #ifdef MULTIPROCESSOR