From 9dc72855992e559a9d2e9fd7621ac5a19079bcf9 Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Sun, 20 Jan 2013 23:27:02 -0700 Subject: [PATCH] OpenBSD 4.6/4.7: Define curproc for rx_atomic.h. 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 Reviewed-by: Derrick Brashear --- src/config/param.obsd46.h | 4 ++++ src/config/param.obsd47.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/config/param.obsd46.h b/src/config/param.obsd46.h index 8c8139221..0eed66e6e 100644 --- a/src/config/param.obsd46.h +++ b/src/config/param.obsd46.h @@ -56,6 +56,10 @@ #include #endif +#ifndef curproc +#include +#endif + /* Extra kernel definitions (from kdefs file) */ #ifdef _KERNEL #ifdef MULTIPROCESSOR diff --git a/src/config/param.obsd47.h b/src/config/param.obsd47.h index 494a8bae6..f1292b785 100644 --- a/src/config/param.obsd47.h +++ b/src/config/param.obsd47.h @@ -57,6 +57,10 @@ #include #endif +#ifndef curproc +#include +#endif + /* Extra kernel definitions (from kdefs file) */ #ifdef _KERNEL #ifdef MULTIPROCESSOR -- 2.39.5