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 79ebd37..e70f92d 100644 (file)
@@ -12,6 +12,8 @@
  * GNU General Public License for more details.
  */
 
  * GNU General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
 #include <sys/reboot.h>
 
 #include <fcntl.h>
 #include <sys/reboot.h>
 
 #include <fcntl.h>