summaryrefslogtreecommitdiff
path: root/ace/config-hpux-10.x.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1999-07-30 15:33:05 +0000
committerSteve Huston <shuston@riverace.com>1999-07-30 15:33:05 +0000
commitd643082380cffadbc8a628674ac8fa48f34ceb2f (patch)
treee5629adf2623ffcf9596e0db84a295705f6674c5 /ace/config-hpux-10.x.h
parent651882be240586fac2e928ac1d0d2885ece51b22 (diff)
downloadATCD-d643082380cffadbc8a628674ac8fa48f34ceb2f.tar.gz
Allow building w/o threads - see ChangeLog.
Diffstat (limited to 'ace/config-hpux-10.x.h')
-rw-r--r--ace/config-hpux-10.x.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/config-hpux-10.x.h b/ace/config-hpux-10.x.h
index 4ac7f03d324..dac6df7341f 100644
--- a/ace/config-hpux-10.x.h
+++ b/ace/config-hpux-10.x.h
@@ -37,6 +37,10 @@
# define ACE_HAS_REENTRANT_FUNCTIONS
// But this one is not like other platforms
# define ACE_CTIME_R_RETURNS_INT
+ // And _REENTRANT must be set, even if not using threads.
+# if !defined (_REENTRANT)
+# define _REENTRANT
+# endif /* _REENTRANT */
#else // 10.30
// Don't know yet... probably will be 10.20 but with some different thread
@@ -86,6 +90,9 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
// Platform supports recvmsg and sendmsg.
#define ACE_HAS_MSG
+// select's timeval arg is non-const
+#define ACE_HAS_NONCONST_SELECT_TIMEVAL
+
// Compiler/platform supports poll().
#define ACE_HAS_POLL
@@ -189,9 +196,6 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
#define ACE_MT_SAFE 1
# endif
-// The threads version of select loses const-ness of the timeval arg
-# define ACE_HAS_NONCONST_SELECT_TIMEVAL
-
# define ACE_HAS_PTHREADS
# define ACE_HAS_PTHREADS_DRAFT4
// POSIX real-time semaphore definitions are in the header files, and it