Skip to content

Commit 902aa39

Browse files
committed
Fix warning in util.c
1 parent 22f55aa commit 902aa39

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

util.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11

2+
#ifdef HAVE_MEMMEM
3+
#define _GNU_SOURCE
4+
#endif
5+
26
#include <sys/types.h>
37
#include <sys/stat.h>
48
#include <assert.h>
59
#include <fcntl.h>
6-
7-
#ifdef HAVE_MEMMEM
8-
#define _GNU_SOURCE
10+
#include <limits.h>
911
#include <string.h>
10-
#endif
12+
#include <stdlib.h>
13+
#include <unistd.h>
1114
#ifndef WIN32
1215
#include <pwd.h>
1316
#endif
14-
#include <stdlib.h>
15-
#include <unistd.h>
16-
#include <limits.h>
1717

1818

1919
#include "util.h"

0 commit comments

Comments
 (0)