summaryrefslogtreecommitdiff
path: root/ace/config-linux-common.h
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-10-19 04:13:59 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-10-19 04:13:59 +0000
commit11b7cd11389fdb2fb7a98f0abc6b4f506a8c3d03 (patch)
tree774f09d19ee582141e7e5adbf92d416e83c5981b /ace/config-linux-common.h
parent8366437d2f2c6be0618b171dcd88521bbfb42e62 (diff)
downloadATCD-11b7cd11389fdb2fb7a98f0abc6b4f506a8c3d03.tar.gz
ChangeLogTag:Mon Oct 18 21:32:29 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'ace/config-linux-common.h')
-rw-r--r--ace/config-linux-common.h38
1 files changed, 23 insertions, 15 deletions
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h
index 6e47207aca5..1b01e4b14f4 100644
--- a/ace/config-linux-common.h
+++ b/ace/config-linux-common.h
@@ -17,9 +17,9 @@
#endif /* ! __ACE_INLINE__ */
// Needed to make some prototypes visible.
-#if ! defined (_GNU_SOURCE)
-#define _GNU_SOURCE
-#endif /* ! _GNU_SOURCE */
+// #if ! defined (_GNU_SOURCE)
+// #define _GNU_SOURCE
+// #endif /* ! _GNU_SOURCE */
// Needed to differentiate between libc 5 and libc 6 (aka glibc).
// It's there on all libc 5 systems I checked.
@@ -50,26 +50,26 @@
// its timeout argument, use ::poll () instead.
# define ACE_HAS_POLL
-# if !defined (__USE_XOPEN_EXTENDED)
+# if !defined (_XOPEN_SOURCE_EXTENDED)
# include <unistd.h>
// unistd.h only declares getpgid () ifdef __USE_XOPEN_EXTENDED.
- extern "C" __pid_t getpgid __P ((__pid_t __pid));
-# endif /* ! __USE_XOPEN_EXTENDED */
+extern "C" __pid_t getpgid __P ((__pid_t __pid));
+# endif /* ! _XOPEN_SOURCE_EXTENDED */
- // NOTE: the following defines are necessary with glibc 2.0 (0.961212-5)
- // on Alpha. I assume that they're necessary on Intel as well,
- // but that may depend on the version of glibc that is used.
+// NOTE: the following defines are necessary with glibc 2.0 (0.961212-5)
+// on Alpha. I assume that they're necessary on Intel as well,
+// but that may depend on the version of glibc that is used.
//# define ACE_HAS_DLFCN_H_BROKEN_EXTERN_C
# define ACE_HAS_VOIDPTR_SOCKOPT
# define ACE_LACKS_SYSTIME_H
- // The strtok_r declaration is protected in string.h.
- extern "C" char *strtok_r __P ((char *__s, __const char *__delim,
- char **__save_ptr));
- // NOTE: end of glibc 2.0 (0.961212-5)-specific configuration.
+// The strtok_r declaration is protected in string.h.
+extern "C" char *strtok_r __P ((char *__s, __const char *__delim,
+ char **__save_ptr));
+// NOTE: end of glibc 2.0 (0.961212-5)-specific configuration.
# if __GLIBC__ > 1 && __GLIBC_MINOR__ >= 1
- // These were suggested by Robert Hanzlik <robi@codalan.cz> to get
- // ACE to compile on Linux using glibc 2.1 and libg++/gcc 2.8.
+// These were suggested by Robert Hanzlik <robi@codalan.cz> to get
+// ACE to compile on Linux using glibc 2.1 and libg++/gcc 2.8.
# undef ACE_HAS_BYTESEX_H
# define ACE_HAS_SIGINFO_T
# define ACE_LACKS_SIGINFO_H
@@ -171,6 +171,14 @@
#define ACE_HAS_STRERROR
#define ACE_HAS_STRPTIME
+#if !defined (_XOPEN_SOURCE)
+# include <time.h>
+// strptime() is an XOPEN function. It is only enabled if _XOPEN_SOURCE
+// or _GNU_SOURCE is defined. (_GNU_SOURCE causes _XOPEN_SOURCE to be
+// defined on Linux/glibc systems)
+extern "C" char *strptime __P ((__const char *__s, __const char *__fmt,
+ struct tm *__tp));
+#endif /* !_XOPEN_SOURCE */
// Compiler supports the ssize_t typedef.
#define ACE_HAS_SSIZE_T