summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2018-12-06 21:28:18 +0100
committerMarcel Holtmann <marcel@holtmann.org>2018-12-06 21:28:18 +0100
commit261948090e9073514ac4b5f64c8715cf0a71eafa (patch)
tree337274f0c0ce990d541b3e15358caadd3b111ddc /peripheral
parenta7cfbaf711fb9c7c462547502ce91d2fa16ac3a4 (diff)
downloadbluez-261948090e9073514ac4b5f64c8715cf0a71eafa.tar.gz
build: Move declaration of _GNU_SOURCE back into individual source files
Diffstat (limited to 'peripheral')
-rw-r--r--peripheral/attach.c1
-rw-r--r--peripheral/efivars.c1
-rw-r--r--peripheral/log.c1
-rw-r--r--peripheral/main.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/peripheral/attach.c b/peripheral/attach.c
index a70ca55c7..1de02ac04 100644
--- a/peripheral/attach.c
+++ b/peripheral/attach.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
diff --git a/peripheral/efivars.c b/peripheral/efivars.c
index a86031fbd..3cc213c0c 100644
--- a/peripheral/efivars.c
+++ b/peripheral/efivars.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/peripheral/log.c b/peripheral/log.c
index 7aaeb4d8c..d5834eb72 100644
--- a/peripheral/log.c
+++ b/peripheral/log.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/peripheral/main.c b/peripheral/main.c
index 93abe2042..75427ab3a 100644
--- a/peripheral/main.c
+++ b/peripheral/main.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>