upgraded: define __GNU_SOURCE
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 30 May 2017 05:23:57 +0000 (07:23 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 20 Jun 2017 14:48:43 +0000 (16:48 +0200)
It is required on non-musl libcs for O_DIRECTORY.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
upgraded/upgraded.c

index d7433e76071524a5e69f0e153730b2801e5406b8..357a866d5ccf8e44408a572371f66905c957c7c0 100644 (file)
@@ -12,6 +12,8 @@
  * GNU General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
 #include <sys/reboot.h>
 
 #include <stdio.h>