diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-03-10 19:37:45 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-03-10 19:37:45 +0000 |
commit | 9141cd9ebd0f3153e62deaf1b389a59c7fe0676a (patch) | |
tree | ab942cc17a733f90c1e9f9814a5b62b0bec587b1 /ace/config-linux-common.h | |
parent | 5812aeacdeb2cc1c4097b844a75dbaa3379b6043 (diff) | |
download | ATCD-9141cd9ebd0f3153e62deaf1b389a59c7fe0676a.tar.gz |
Linux has msync() and madvise(), and dlfcn.h is protected by extern "C"
Diffstat (limited to 'ace/config-linux-common.h')
-rw-r--r-- | ace/config-linux-common.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h index be3f1c9bbea..bf5d89def69 100644 --- a/ace/config-linux-common.h +++ b/ace/config-linux-common.h @@ -16,6 +16,11 @@ #define __ACE_INLINE__ #endif /* ! __ACE_INLINE__ */ +// Needed to make some prototypes visible. +#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. #include <features.h> @@ -50,7 +55,7 @@ // 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_DLFCN_H_BROKEN_EXTERN_C # define ACE_HAS_VOIDPTR_SOCKOPT # define ACE_LACKS_SYSTIME_H // The strtok_r declaration is protected in string.h. @@ -140,8 +145,8 @@ #define ACE_LACKS_STRRECVFD -#define ACE_LACKS_MSYNC -#define ACE_LACKS_MADVISE +//#define ACE_LACKS_MSYNC +//#define ACE_LACKS_MADVISE #define ACE_HAS_PROCFS // Platform supports System V IPC (most versions of UNIX, but not Win32) |