mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-09 14:52: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"
|
OUR_CPPFLAGS="$OUR_CPPFLAGS -DBROKEN_FCLOSE"
|
||||||
}
|
}
|
||||||
check_define __sun && check_define __SVR4 && solaris_detected=true
|
check_define __sun && check_define __SVR4 && solaris_detected=true
|
||||||
issolaris && for i in 700 600; do
|
issolaris && for i in 200809L 200112L; do
|
||||||
check_compile_add_cppflag "whether _XOPEN_SOURCE=$i is suitable for C99 mode" "-D_XOPEN_SOURCE=$i" "#include <unistd.h>" && break
|
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
|
done
|
||||||
|
|
||||||
echo "CC=$CC">config.mak
|
echo "CC=$CC">config.mak
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#undef _GNU_SOURCE
|
#undef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#undef _POSIX_C_SOURCE
|
//#ifndef _POSIX_C_SOURCE
|
||||||
#define _POSIX_C_SOURCE 200809L
|
//#define _POSIX_C_SOURCE MAX_POSIX_VERSION
|
||||||
|
//#endif
|
||||||
#define _DARWIN_C_SOURCE
|
#define _DARWIN_C_SOURCE
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#undef _POSIX_C_SOURCE
|
#ifndef _POSIX_C_SOURCE
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE MAX_POSIX_VERSION
|
||||||
#ifndef _XOPEN_SOURCE
|
#endif
|
||||||
|
#ifndef IS_SOLARIS
|
||||||
#define _XOPEN_SOURCE 700
|
#define _XOPEN_SOURCE 700
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user