Revision
16266
Author
mikej
Date
2010-01-12 13:23:35 -0600 (Tue, 12 Jan 2010)

Log Message

attempt to properly check if we can use CPU_SET with sched_setaffinity because some older libc had gnu extensions in the definitions of CPU_SET which we do not allow (FSBUILD-226)

Modified Paths

Diff

Modified: freeswitch/trunk/build/config/sched_setaffinity.m4 (16265 => 16266)


--- freeswitch/trunk/build/config/sched_setaffinity.m4	2010-01-12 19:00:27 UTC (rev 16265)
+++ freeswitch/trunk/build/config/sched_setaffinity.m4	2010-01-12 19:23:35 UTC (rev 16266)
@@ -8,7 +8,7 @@
         AC_CACHE_CHECK([whether the CPU_SET and CPU_ZERO macros are defined],
         ac_cv_cpu_set_defined,[
 	saved_CFLAGS="$CFLAGS"
-	CFLAGS="$CFLAGS $SWITCH_AM_CFLAGS"
+	CFLAGS="$CFLAGS $SWITCH_AM_CFLAGS $SWITCH_ANSI_CFLAGS -D_GNU_SOURCE"
         AC_TRY_COMPILE( [#include <sched.h>],[ cpu_set_t t; CPU_ZERO(&t); CPU_SET(1,&t); ],
 	        ac_cv_cpu_set_defined=yes,ac_cv_cpu_set_defined=no)])
         if test "$ac_cv_cpu_set_defined" = "yes" ; then