diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-10 01:14:49 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-10 01:14:49 +0000 |
commit | 4eef6f4c9ae4e1c9e665b81ea14d8c1a056210ec (patch) | |
tree | 828cc26856ffea587886a4ac040f94004b588382 /build | |
parent | e60eaa2a260d86cccbc43194c8cf2b7c8ce842f9 (diff) | |
download | libapr-4eef6f4c9ae4e1c9e665b81ea14d8c1a056210ec.tar.gz |
BSDi 4.1 needs to have the _REENTRANT flag set to get a correct build.
Not sure about newer/older versions of BSDi, but ISTR that threads were
not implemented correctly prior to 4.1 so it shouldn't be an issue with
older versions.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62495 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_hints.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4 index 43716e355..aef22b6ba 100644 --- a/build/apr_hints.m4 +++ b/build/apr_hints.m4 @@ -135,6 +135,13 @@ dnl # Not a problem in 10.20. Otherwise, who knows? *486-*-bsdi*) APR_ADDTO(CFLAGS, [-m486]) ;; + *-*-bsdi*) + case $host in + *bsdi4.1) + APR_ADDTO(CFLAGS, [-D_REENTRANT]) + ;; + esac + ;; *-openbsd*) APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS]) ;; |