Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doubaokun committed Feb 4, 2025
1 parent cae1406 commit 13336c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@ AC_DEFUN([AC_SWOOLE_CPU_AFFINITY],
[
AC_MSG_CHECKING([for cpu affinity])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#define _GNU_SOURCE 1
#ifdef __FreeBSD__
#include <sys/types.h>
#include <sys/cpuset.h>
typedef cpuset_t cpu_set_t;
#else
#define _GNU_SOURCE 1
#include <sched.h>
#endif
]], [[
Expand Down Expand Up @@ -324,8 +326,7 @@ AC_COMPILE_IFELSE([
)
AC_MSG_RESULT([$CLANG])

AC_PROG_CC
CFLAGS="$CFLAGS -std=c99"
m4_version_prereq([2.70], [], [AC_PROG_CC_C99])

AC_CANONICAL_HOST

Expand Down

0 comments on commit 13336c3

Please sign in to comment.