Skip to content
Snippets Groups Projects
Commit f98f3837 authored by Moe Jette's avatar Moe Jette
Browse files

wrap some #define with #ifndef

parent 1bca5f01
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,9 @@ ...@@ -79,7 +79,9 @@
* with SLURM; if not, write to the Free Software Foundation, Inc., * with SLURM; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\*****************************************************************************/ \*****************************************************************************/
#define _GNU_SOURCE #ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
......
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
# include <inttypes.h> # include <inttypes.h>
#endif #endif
#define __USE_XOPEN_EXTENDED /* getpgid */ #ifndef __USE_XOPEN_EXTENDED
# define __USE_XOPEN_EXTENDED /* getpgid */
#endif
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
......
...@@ -61,8 +61,13 @@ ...@@ -61,8 +61,13 @@
#include <sys/utsname.h> #include <sys/utsname.h>
#include <unistd.h> #include <unistd.h>
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define __USE_GNU # define _GNU_SOURCE
#endif
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <sched.h> /* SMB */ #include <sched.h> /* SMB */
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment