diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-19 22:16:42 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-19 22:16:42 +0000 |
commit | c437bae1d082894724f1e430c3164b88108f51e5 (patch) | |
tree | 1214a7ed355958f5b4a027eda5e89d1d3f84bd5a /ace/config-freebsd-pthread.h | |
parent | c8cb0a19edb448d8391ab96a06ae4bedbefb1dca (diff) | |
download | ATCD-c437bae1d082894724f1e430c3164b88108f51e5.tar.gz |
Added ACE_LACKS_MALLOC_H, avoid duplicate definitions of _THREAD_SAFE.
Added prototype of cuserid.
Diffstat (limited to 'ace/config-freebsd-pthread.h')
-rw-r--r-- | ace/config-freebsd-pthread.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/config-freebsd-pthread.h b/ace/config-freebsd-pthread.h index 450aa0be4e9..7eefba04b54 100644 --- a/ace/config-freebsd-pthread.h +++ b/ace/config-freebsd-pthread.h @@ -21,7 +21,10 @@ // Platform specific directives // gcc defines __FreeBSD__ automatically for us. +#if !defined (_THREAD_SAFE) #define _THREAD_SAFE +#endif /* _THREAD_SAFE */ + #define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS #define ACE_LACKS_GETPGID #define ACE_LACKS_RWLOCK_T @@ -32,6 +35,9 @@ #define ACE_USES_ASM_SYMBOL_IN_DLSYM #define ACE_LACKS_SIGSET +// Use of <malloc.h> is deprecated. +#defined ACE_LACKS_MALLOC_H + // sched.h still not fully support on FreeBSD ? // this is taken from /usr/src/lib/libc_r/uthread/pthread-private.h enum schedparam_policy { @@ -41,6 +47,9 @@ enum schedparam_policy { SCHED_OTHER }; +// This won't be necessary after it is fixed in the system include headers. +char * cuserid (char *s); + // Platform supports POSIX timers via struct timespec. #define ACE_HAS_POSIX_TIME #define ACE_HAS_UALARM |