summaryrefslogtreecommitdiff
path: root/ace/config-hpux-10.x.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-08-15 21:40:12 +0000
committerSteve Huston <shuston@riverace.com>1997-08-15 21:40:12 +0000
commit9e0b94104cc0659dae23d1c91e83b93d68816418 (patch)
tree8e0b83d70f6d7a754e098723a2b140b537028c64 /ace/config-hpux-10.x.h
parentf0b7fbafd1fe03d87da897c2894e0e795b6dca92 (diff)
downloadATCD-9e0b94104cc0659dae23d1c91e83b93d68816418.tar.gz
1. Don't #define _HPUX_SOURCE if it's already defined (many people define
this on the command line) 2. Move ACE_HAS_REENTRANT_FUNCTIONS and ACE_CTIME_R_RETURNS_INT definitions to the build-with-threads section (10.10 w/o threads doesn't have them).
Diffstat (limited to 'ace/config-hpux-10.x.h')
-rw-r--r--ace/config-hpux-10.x.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ace/config-hpux-10.x.h b/ace/config-hpux-10.x.h
index 1d8dc723ac5..1357be2a333 100644
--- a/ace/config-hpux-10.x.h
+++ b/ace/config-hpux-10.x.h
@@ -16,7 +16,9 @@
#endif /* HPUX */
#define HPUX_10
+#ifndef _HPUX_SOURCE
#define _HPUX_SOURCE
+#endif
#include /**/ <sys/stdsyms.h>
#include /**/ <sched.h> /* pthread.h doesn't include this */
@@ -72,11 +74,6 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
// Platform supports the POSIX struct timespec type
#define ACE_HAS_POSIX_TIME
-// Platform supports reentrant functions (i.e., all the POSIX *_r functions).
-#define ACE_HAS_REENTRANT_FUNCTIONS
-// But this one is not like other platforms
-#define ACE_CTIME_R_RETURNS_INT
-
// Compiler/platform defines the sig_atomic_t typedef
#define ACE_HAS_SIG_ATOMIC_T
@@ -159,6 +156,11 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
//# define ACE_HAS_POSIX_SEM
# define ACE_HAS_PTHREAD_T
+// Platform supports reentrant functions (i.e., all the POSIX *_r functions).
+#define ACE_HAS_REENTRANT_FUNCTIONS
+// But this one is not like other platforms
+#define ACE_CTIME_R_RETURNS_INT
+
// Platform has pthread_attr_delete instead of pthread_attr_destroy
// ACE needs to define PRIORITY_MAX
# define ACE_HAS_SETKIND_NP