]> www.infradead.org Git - mtd-utils.git/commit
move _GNU_SOURCE to the main makefile
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 May 2013 16:27:24 +0000 (12:27 -0400)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 1 Jul 2013 05:55:49 +0000 (08:55 +0300)
commit8b4786830174e06bc27810f15c76f72cb3e951d9
tree059765d63c74a281772da2f91c0c5fa285162de7
parent65405e7eb0b83f76ac3e1ace9db6549154568d99
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>
Makefile
include/xalloc.h
mkfs.jffs2.c
mkfs.ubifs/mkfs.ubifs.h
nanddump.c
nandtest.c
nandwrite.c