summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-04-29 06:20:54 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-04-29 06:20:54 +0000
commiteea95b113f4187733ac4195ecc5f444b1b8f3655 (patch)
treee55a779e2490269c4f7953a16beb262eba486fbb
parent089b3ecce8ea5d8b8ffd7aa9bb02db097aa21981 (diff)
downloadATCD-eea95b113f4187733ac4195ecc5f444b1b8f3655.tar.gz
ChangeLogTag:Thu Apr 28 23:06:59 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r--ChangeLog9
-rw-r--r--ace/config-linux-common.h15
2 files changed, 19 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index dd303ea4fd2..8271c3f74eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Thu Apr 28 23:06:59 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/config-linux-common.h:
+
+ Do not perform feature tests using implementation-specific
+ preprocessor symbols. Use the standard ones instead
+ (e.g. _POSIX_C_SOURCE, _ISO_C99SOURCE, _BSD_SOURCE,
+ _XOPEN_SOURCE, etc).
+
Thu Apr 28 22:53:16 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
* ace/config-linux-common.h (ACE_LACKS_MKSTEMP_PROTOTYPE):
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h
index 886bb1c86ac..73e335b84e6 100644
--- a/ace/config-linux-common.h
+++ b/ace/config-linux-common.h
@@ -29,12 +29,12 @@
# define ACE_HAS_PTHREADS_UNIX98_EXT
#endif /* _XOPEN_SOURCE - 0 >= 500 */
-#if defined (__USE_POSIX199309)
+#if (defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L)
# if !defined (ACE_HAS_CLOCK_GETTIME)
# define ACE_HAS_CLOCK_GETTIME
# define ACE_HAS_CLOCK_SETTIME
-# endif
-#endif
+# endif /* !ACE_HAS_CLOCK_GETTIME */
+#endif /* _POSIX_C_SOURCE >= 199309L */
// First the machine specific part
@@ -97,8 +97,13 @@
# define ACE_LACKS_STRTOK_R_PROTOTYPE
// NOTE: end of glibc 2.0 (0.961212-5)-specific configuration.
-// These macros determined by reading stdio.h on RH 7.1.
-# if defined (__USE_BSD) || defined (__USE_ISOC99) || defined (__USE_UNIX98)
+// These macros determined by reading <stdio.h> on RH 7.1 and glibc's
+// <features.h>.
+# if defined (_BSD_SOURCE) \
+ || defined (_ISOC99_SOURCE) \
+ || defined (_ISOC9X_SOURCE) \
+ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) \
+ || (defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 500)
# define ACE_HAS_SNPRINTF
# endif