Remove define for VOLATILE, volatile is already provided by libreplace.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 14 Oct 2008 01:17:52 +0000 (03:17 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 14 Oct 2008 01:17:52 +0000 (03:17 +0200)
source3/include/includes.h
source3/nsswitch/winbind_nss_irix.c
source3/nsswitch/wins.c

index bcd5fd3b4866894bb72de49c8c4a0d2b02d2010b..a13372665c78c204d3fa408d86449ec9fdd58fed 100644 (file)
@@ -285,25 +285,15 @@ typedef int ber_int_t;
 #define HAVE_ADS
 #endif
 
-/*
- * Define VOLATILE if needed.
- */
-
-#if defined(HAVE_VOLATILE)
-#define VOLATILE volatile
-#else
-#define VOLATILE
-#endif
-
 /*
  * Define additional missing types
  */
 #if defined(HAVE_SIG_ATOMIC_T_TYPE) && defined(AIX)
 typedef sig_atomic_t SIG_ATOMIC_T;
 #elif defined(HAVE_SIG_ATOMIC_T_TYPE) && !defined(AIX)
-typedef sig_atomic_t VOLATILE SIG_ATOMIC_T;
+typedef sig_atomic_t volatile SIG_ATOMIC_T;
 #else
-typedef int VOLATILE SIG_ATOMIC_T;
+typedef int volatile SIG_ATOMIC_T;
 #endif
 
 #ifndef uchar
index 4726c1e13f3165172773556e1b95baec51738131..5bc0fa54da9a00d0fd68e64f877ff42fa3487758 100644 (file)
@@ -32,7 +32,6 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
 #endif
 
 #ifdef HAVE_NS_API_H
-#undef VOLATILE
 #undef STATIC
 #undef DYNAMIC
 #include <ns_daemon.h>
index 7d42381986df537ab9f22fd1ea14c642ea9d8087..2f82997aafbe4c1bdfe56ed2444c384d81531bf9 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "includes.h"
 #ifdef HAVE_NS_API_H
-#undef VOLATILE
 
 #include <ns_daemon.h>
 #endif