diff --git a/src/afsd/afsd_kernel.c b/src/afsd/afsd_kernel.c index c45c64fdd8..94f1a32fc5 100644 --- a/src/afsd/afsd_kernel.c +++ b/src/afsd/afsd_kernel.c @@ -9,6 +9,7 @@ #include #include +#include #include @@ -77,8 +78,6 @@ #include #include #include -#include - #ifdef AFS_DARWIN_ENV #ifdef AFS_DARWIN80_ENV #include @@ -346,7 +345,7 @@ afsd_call_syscall(struct afsd_syscall_args *args) const char *syscall_str; #if defined(AFS_SYSCALL) - syscall_str = AFS_STRINGIZE(AFS_SYSCALL); + syscall_str = opr_stringize(AFS_SYSCALL); #else syscall_str = "[AFS_SYSCALL]"; #endif diff --git a/src/opr/opr.h b/src/opr/opr.h index 8970c92414..556d58be0c 100644 --- a/src/opr/opr.h +++ b/src/opr/opr.h @@ -9,6 +9,11 @@ /* assert.c */ +/* A simple macro to help show the value of #define'd constants. e.g. If 'FOO' + * is defined as 5, then opr_stringize(FOO) expands to "5" */ +#define opr_stringize_(s) #s +#define opr_stringize(s) opr_stringize_(s) + #ifdef AFS_NT40_ENV # define opr_abort() opr_NTAbort() extern void opr_NTAbort(void); diff --git a/src/util/afsutil.h b/src/util/afsutil.h index bbebcc16d8..bd78946b4e 100644 --- a/src/util/afsutil.h +++ b/src/util/afsutil.h @@ -121,11 +121,6 @@ extern int re_exec(const char *p1); /* b64_string_t is 8 bytes, in stds.h */ typedef char lb64_string_t[12]; -/* A simple macro to help show the value of #define'd constants. e.g. If 'FOO' - * is defined as 5, then AFS_STRINGIZE(FOO) expands to "5" */ -#define AFS_STRINGIZE_(s) #s -#define AFS_STRINGIZE(s) AFS_STRINGIZE_(s) - #include #include "afsutil_prototypes.h"