]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Do not expose afs_assert.h from other public headers
authorAnders Kaseorg <andersk@mit.edu>
Tue, 23 Jul 2013 18:30:20 +0000 (14:30 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Mon, 9 Sep 2013 08:17:34 +0000 (01:17 -0700)
afs_assert.h redefines the standard assert macro, which is evil and
breaks some applications that might want to include our public headers
(e.g. some versions of Cython).  This was fixed on master by commit
cac74242728ad97e3ce9cef0a949d58c237250f6, which removes afs_assert.h
entirely and adds opr_Assert.  Since that patch may be too invasive
for 1.6.x, here’s a minimal patch that just stops exposing
afs_assert.h from our other public headers.

Change-Id: I39a7b9ae8d43cfe0059e10e47ce4b1c22e01c544
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-on: http://gerrit.openafs.org/10096
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/kauth/admin_tools.c
src/lwp/lock.h
src/ubik/remote.c
src/ubik/ubik.p.h
src/util/pthread_glock.h
src/volser/volser.p.h

index 9f676fa81a3559f584c7db652da47dc8b99cfe55..6e119958889d4e736e9b66de7ec618d2e91ca3ae 100644 (file)
@@ -30,6 +30,7 @@
 #include <lock.h>
 #define UBIK_LEGACY_CALLITER 1
 #include <ubik.h>
+#include <afs/afs_assert.h>
 #ifndef AFS_NT40_ENV
 #include <pwd.h>
 #endif
index 7bda375889fa1fe0bd5e2159192dfb53a3a498a1..aa104488f00afd1676a8c361ff670cd5d7b99690 100644 (file)
@@ -44,7 +44,6 @@
 
 #ifdef AFS_PTHREAD_ENV
 #include <pthread.h>
-#include <afs/afs_assert.h>
 /* can't include in non-lwp case; rx builds later */
 #include <rx/rx.h>
 #define LOCK_LOCK(A) MUTEX_ENTER(&(A)->mutex);
index 83ede63ee467fde545145d76c2d7c78f4716aa6f..6dabe61c008f58a84eede5019f7e4b3130689960 100644 (file)
@@ -28,6 +28,7 @@
 #include <rx/rx.h>
 #include <errno.h>
 #include <afs/afsutil.h>
+#include <afs/afs_assert.h>
 
 #define UBIK_INTERNALS
 #include "ubik.h"
index ff71968045f67f4cc5f0ccb671b1f3f7fbd64269..3581fb23bd2e05d0d0c12c65e0d263f90fdf401c 100644 (file)
@@ -75,7 +75,6 @@
 #define        CFLastFailed        1   /*!< last call failed to this guy (to detect down hosts) */
 /*\}*/
 
-#include <afs/afs_assert.h>
 #ifdef AFS_PTHREAD_ENV
 #include <pthread.h>
 #else
index c6414c96cc3ebb48c54cfe2af8c890692c2e6e4c..dad68fa5a806829670f03ff1d18aa1062a4a7768 100644 (file)
@@ -12,7 +12,6 @@
 
 #ifdef AFS_PTHREAD_ENV
 #include <pthread.h>
-#include <afs/afs_assert.h>
 
 typedef struct {
     pthread_mutex_t mut;
index 5907fcb00623e375ef23d3f24ac3d9c7afae7905..7a225b54318e282a5f6a18ebb9fb23fdaa0d8458 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _VOLSER_
 #define _VOLSER_ 1
 
-#include <afs/afs_assert.h>
 #ifdef AFS_PTHREAD_ENV
 #include <pthread.h>
 #endif