Skip to content

Commit 13336c3

Browse files
committed
fix
1 parent cae1406 commit 13336c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.m4

+3-2
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,13 @@ AC_DEFUN([AC_SWOOLE_CPU_AFFINITY],
124124
[
125125
AC_MSG_CHECKING([for cpu affinity])
126126
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
127+
#define _GNU_SOURCE 1
127128
#ifdef __FreeBSD__
128129
#include <sys/types.h>
129130
#include <sys/cpuset.h>
130131
typedef cpuset_t cpu_set_t;
131132
#else
133+
#define _GNU_SOURCE 1
132134
#include <sched.h>
133135
#endif
134136
]], [[
@@ -324,8 +326,7 @@ AC_COMPILE_IFELSE([
324326
)
325327
AC_MSG_RESULT([$CLANG])
326328

327-
AC_PROG_CC
328-
CFLAGS="$CFLAGS -std=c99"
329+
m4_version_prereq([2.70], [], [AC_PROG_CC_C99])
329330

330331
AC_CANONICAL_HOST
331332

0 commit comments

Comments
 (0)