preinit: define _GNU_SOURCE
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 16 Jun 2017 14:09:01 +0000 (16:09 +0200)
committerHans Dedecker <hans.dedecker@technicolor.com>
Fri, 16 Jun 2017 14:23:36 +0000 (16:23 +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 dda6576555b04cdedcac75fc745faccaf15a736b..09edb8fb88d0c9a1da8854bae54285b4fcaba59b 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>