]> granicus.if.org Git - jq/commitdiff
Fix warning in util.c jq-1.5rc1
authorNicolas Williams <nico@cryptonector.com>
Thu, 1 Jan 2015 21:15:10 +0000 (15:15 -0600)
committerNicolas Williams <nico@cryptonector.com>
Thu, 1 Jan 2015 21:15:10 +0000 (15:15 -0600)
util.c

diff --git a/util.c b/util.c
index 9dec89b4d805d60e38f5c7def5b58844975c5f38..33ee07f6ab45ec5009447313691ca70ef7dc626d 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1,19 +1,19 @@
 
+#ifdef HAVE_MEMMEM
+#define _GNU_SOURCE
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <assert.h>
 #include <fcntl.h>
-
-#ifdef HAVE_MEMMEM
-#define _GNU_SOURCE
+#include <limits.h>
 #include <string.h>
-#endif
+#include <stdlib.h>
+#include <unistd.h>
 #ifndef WIN32
 #include <pwd.h>
 #endif
-#include <stdlib.h>
-#include <unistd.h>
-#include <limits.h>
 
 
 #include "util.h"