preinit: define _GNU_SOURCE
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 16 Jun 2017 14:09:01 +0000 (16:09 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 20 Jun 2017 14:48:43 +0000 (16:48 +0200)
In uClibc getdelim is only defined if _GNU_SOURCE is defined; fix
compilation issue by defining _GNU_SOURCE

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
initd/preinit.c

index 729978ea2f2af790653baaee5ae788f05a88a177..427fa758f4433bb271c0d754d8628d96ec537f9e 100644 (file)
@@ -11,6 +11,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#define _GNU_SOURCE
 
 #include <sys/stat.h>
 #include <sys/types.h>