Fix warning: "_GNU_SOURCE" redefined 24/5124/1
authorEvan Ramos <evan@hpccharm.com>
Fri, 26 Apr 2019 17:52:14 +0000 (12:52 -0500)
committerEvan Ramos <evan@hpccharm.com>
Fri, 26 Apr 2019 18:19:16 +0000 (13:19 -0500)
Change-Id: I79f045a37a408cd30711f4b8a8826f714f62eeb9

src/conv-core/cpuaffinity.C

index 2417f67325c7925d5f754b68ed92b4a8ecf93684..42ec91626b8416dbb86edfed7804b3b9c5d92f39 100644 (file)
@@ -10,7 +10,9 @@ cpu affinity.
  * new options +pemap +commmap takes complex pattern of a list of cores
 */
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include "converse.h"
 #include "sockRoutines.h"
@@ -75,7 +77,6 @@ void CmiInitHwlocTopology(void)
 #include <windows.h>
 #include <winbase.h>
 #else
-#define _GNU_SOURCE
 #include <sched.h>
 //long sched_setaffinity(pid_t pid, unsigned int len, unsigned long *user_mask_ptr);
 //long sched_getaffinity(pid_t pid, unsigned int len, unsigned long *user_mask_ptr);