diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-08 12:27:24 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-07-01 08:55:49 +0300 |
commit | 8b4786830174e06bc27810f15c76f72cb3e951d9 (patch) | |
tree | 059765d63c74a281772da2f91c0c5fa285162de7 /nandwrite.c | |
parent | 65405e7eb0b83f76ac3e1ace9db6549154568d99 (diff) |
move _GNU_SOURCE to the main makefile
A bunch of utils are relying on _GNU_SOURCE already. The new prompt code
uses getline() which is now part of POSIX, but in older versions of glibc,
it was behind _GNU_SOURCE as it was a GNU extension.
This change doesn't actually tie us to glibc. Only code that uses GNU
extensions does that. It just kills warning when using older versions of
glibc.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'nandwrite.c')
-rw-r--r-- | nandwrite.c | 1 |
1 files changed, 0 insertions, 1 deletions
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> |