upgraded: define __GNU_SOURCE
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 30 May 2017 05:23:57 +0000 (07:23 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 30 May 2017 05:23:57 +0000 (07:23 +0200)
It is required on non-musl libcs for O_DIRECTORY.

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

index 79ebd37b1585a72437cf4ecd4586368a667a023a..e70f92dd42cb1f84792d2fc5adf9728e21f640f1 100644 (file)
@@ -12,6 +12,8 @@
  * GNU General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
 #include <sys/reboot.h>
 
 #include <fcntl.h>