summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-06 03:22:48 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-06 03:22:48 +0000
commit967be27942314b503f01852d1f058339f42592ef (patch)
tree6e8ea7940f0791c840cbd9e347421f66b7448b3b /ace
parenta7b00debc53dc9a76edef0f6325e9703d5ede8a7 (diff)
downloadATCD-967be27942314b503f01852d1f058339f42592ef.tar.gz
factored out ACE_LACKS_SOME_POSIX_PROTOTYPES from glibc and non-glibc sections to common section
Diffstat (limited to 'ace')
-rw-r--r--ace/config-linux-common.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h
index 1b4a4f920e1..cf38f794367 100644
--- a/ace/config-linux-common.h
+++ b/ace/config-linux-common.h
@@ -17,10 +17,11 @@
#define __ACE_INLINE__
#endif /* ! __ACE_INLINE__ */
-// Needed to differentiate between libc 5 and libc 6 (aka glibc)
-// It's there on all libc 5 systems I checked
+// Needed to differentiate between libc 5 and libc 6 (aka glibc).
+// It's there on all libc 5 systems I checked.
#include <features.h>
+
// First the machine specific part
#if defined (i386)
@@ -32,6 +33,7 @@
# define ACE_HAS_PENTIUM
#endif /* i386 */
+
// Then glibc/libc5 specific parts
#if defined(__GLIBC__)
@@ -40,14 +42,13 @@
# define ACE_HAS_RLIMIT_RESOURCE_ENUM enum __rlimit_resource
# define ACE_HAS_SIZET_SOCKET_LEN
-// 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_GETPGID
# define ACE_LACKS_RPC_H
-# define ACE_LACKS_SOME_POSIX_PROTOTYPES
// To avoid compilation warnings about TCP_NODELAY and TCP_MAXSEG
// being redefined, because they're defined in linux/socket.h:
# define ACE_LACKS_TCP_H
@@ -55,12 +56,9 @@
// 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.
+ // NOTE: end of glibc 2.0 (0.961212-5)-specific configuration.
#else
- // Platform lacks POSIX prototypes for certain System V functions
- // like shared memory and message queues.
-# define ACE_LACKS_SOME_POSIX_PROTOTYPES
#endif /* __GLIBC__ */
@@ -85,7 +83,6 @@
// Platform/compiler has the sigwait(2) prototype
#define ACE_HAS_SIGWAIT
-// The following is necessary on Alpha, and might be necessary on Intel.
# define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000)
// Fixes a problem with new versions of Linux...
@@ -133,6 +130,10 @@
// Defines the page size of the system.
#define ACE_PAGE_SIZE 4096
+// Platform lacks POSIX prototypes for certain System V functions
+// like shared memory and message queues.
+#define ACE_LACKS_SOME_POSIX_PROTOTYPES
+
// Platform defines struct timespec but not timespec_t
#define ACE_LACKS_TIMESPEC_T
@@ -175,11 +176,11 @@
// Turns off the tracing feature.
#if !defined (ACE_NTRACE)
-#define ACE_NTRACE 1
+# define ACE_NTRACE 1
#endif /* ACE_NTRACE */
#if defined(__EXCEPTIONS)
-#define ACE_HAS_EXCEPTIONS
+# define ACE_HAS_EXCEPTIONS
#endif
#endif /* ACE_LINUX_COMMON_H */