mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r2905: Apply the patch for bug #1822. Add -D_REENTRANT to CPPFLAGS and -lthread
to LDFLAGS.
Patch supplied by Sean McGrath ...
(This used to be commit d704272b0a
)
This commit is contained in:
parent
8f49721fef
commit
ce873b76c8
@ -471,17 +471,20 @@ case "$host_os" in
|
||||
rm -fr conftest.c
|
||||
case "$ac_cv_gcc_compiler_version_number" in
|
||||
*"gcc version 2.6"*|*"gcc version 2.7"*)
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT"
|
||||
LDFLAGS="$LDFLAGS -lthread"
|
||||
AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
|
||||
LDFLAGS="$LDFLAGS -lthread"
|
||||
AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
|
||||
AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])
|
||||
;;
|
||||
esac
|
||||
else
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
|
||||
LDFLAGS="$LDFLAGS -lthread"
|
||||
AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support])
|
||||
AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits])
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user