diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | include/xalloc.h | 2 | ||||
-rw-r--r-- | mkfs.jffs2.c | 1 | ||||
-rw-r--r-- | mkfs.ubifs/mkfs.ubifs.h | 2 | ||||
-rw-r--r-- | nanddump.c | 1 | ||||
-rw-r--r-- | nandtest.c | 1 | ||||
-rw-r--r-- | nandwrite.c | 1 |
7 files changed, 2 insertions, 8 deletions
@@ -3,7 +3,7 @@ VERSION = 1.5.0 -CPPFLAGS += -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) +CPPFLAGS += -D_GNU_SOURCE -I./include -I$(BUILDDIR)/include -I./ubi-utils/include $(ZLIBCPPFLAGS) $(LZOCPPFLAGS) ifeq ($(WITHOUT_XATTR), 1) CPPFLAGS += -DWITHOUT_XATTR diff --git a/include/xalloc.h b/include/xalloc.h index f1cc8d4..532b80f 100644 --- a/include/xalloc.h +++ b/include/xalloc.h @@ -27,6 +27,7 @@ #ifndef __MTD_UTILS_XALLOC_H__ #define __MTD_UTILS_XALLOC_H__ +#include <stdarg.h> #include <stdlib.h> #include <string.h> @@ -84,7 +85,6 @@ static char *xstrdup(const char *s) } #ifdef _GNU_SOURCE -#include <stdarg.h> __attribute__((unused)) static int xasprintf(char **strp, const char *fmt, ...) diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c index 7ade078..c1b0f0d 100644 --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c @@ -49,7 +49,6 @@ #define PROGRAM_NAME "mkfs.jffs2" -#define _GNU_SOURCE #include <sys/types.h> #include <stdio.h> #include <sys/stat.h> diff --git a/mkfs.ubifs/mkfs.ubifs.h b/mkfs.ubifs/mkfs.ubifs.h index 01161ef..6030c48 100644 --- a/mkfs.ubifs/mkfs.ubifs.h +++ b/mkfs.ubifs/mkfs.ubifs.h @@ -23,8 +23,6 @@ #ifndef __MKFS_UBIFS_H__ #define __MKFS_UBIFS_H__ -#define _GNU_SOURCE -#define _LARGEFILE64_SOURCE #include <unistd.h> #include <stdlib.h> #include <stdio.h> @@ -15,7 +15,6 @@ #define PROGRAM_NAME "nanddump" -#define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> @@ -1,6 +1,5 @@ #define PROGRAM_NAME "nandtest" -#define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> diff --git a/nandwrite.c b/nandwrite.c index de8e7d2..a6b6581 100644 --- a/nandwrite.c +++ b/nandwrite.c @@ -21,7 +21,6 @@ #define PROGRAM_NAME "nandwrite" -#define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> |