mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
Remove all _XOPEN_SOURCE defines in 'configure'
This commit is contained in:
parent
86f96a1e05
commit
1f45deaf38
5
configure
vendored
5
configure
vendored
@ -164,8 +164,9 @@ check_compile_run 'whether OpenBSDs fclose() (illegally) calls close()' \
|
||||
OUR_CPPFLAGS="$OUR_CPPFLAGS -DBROKEN_FCLOSE"
|
||||
}
|
||||
check_define __sun && check_define __SVR4 && solaris_detected=true
|
||||
issolaris && for i in 700 600; do
|
||||
check_compile_add_cppflag "whether _XOPEN_SOURCE=$i is suitable for C99 mode" "-D_XOPEN_SOURCE=$i" "#include <unistd.h>" && break
|
||||
issolaris && for i in 200809L 200112L; do
|
||||
check_compile_add_cppflag "whether _POSIX_C_SOURCE=$i is suitable for C99 mode" "-DMAX_POSIX_VERSION=$i" \
|
||||
'#define _POSIX_C_SOURCE MAX_POSIX_VERSION\n#include <unistd.h>' && break
|
||||
done
|
||||
|
||||
echo "CC=$CC">config.mak
|
||||
|
@ -1,7 +1,8 @@
|
||||
#undef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
//#ifndef _POSIX_C_SOURCE
|
||||
//#define _POSIX_C_SOURCE MAX_POSIX_VERSION
|
||||
//#endif
|
||||
#define _DARWIN_C_SOURCE
|
||||
#include <limits.h>
|
||||
#include <pthread.h>
|
||||
|
@ -7,9 +7,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE MAX_POSIX_VERSION
|
||||
#endif
|
||||
#ifndef IS_SOLARIS
|
||||
#define _XOPEN_SOURCE 700
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
Loading…
Reference in New Issue
Block a user