summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-11-02 01:04:48 +0100
committerGravatar Nikias Bassen2019-11-02 01:04:48 +0100
commit24e06d5247c37a7712d85f032ed3ba74d7a039f8 (patch)
tree8909edfce1e89ca30e944caa47b1846ac08e291d
parent7a1110f5c13e7249062da952e1ac4de1b56d4a4e (diff)
downloadusbmuxd-24e06d5247c37a7712d85f032ed3ba74d7a039f8.tar.gz
usbmuxd-24e06d5247c37a7712d85f032ed3ba74d7a039f8.tar.bz2
Define _BSD_SOURCE again for older platforms.
While defining _BSD_SOURCE prints deprecation warnings, defining both _DEFAULT_SOURCE and _BSD_SOURCE will not.
-rw-r--r--src/device.c1
-rw-r--r--src/main.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index afb2d92..87a36cc 100644
--- a/src/device.c
+++ b/src/device.c
@@ -19,6 +19,7 @@
19 */ 19 */
20 20
21#define _DEFAULT_SOURCE 21#define _DEFAULT_SOURCE
22#define _BSD_SOURCE
22 23
23#ifdef HAVE_CONFIG_H 24#ifdef HAVE_CONFIG_H
24#include <config.h> 25#include <config.h>
diff --git a/src/main.c b/src/main.c
index 34aa1f4..aede710 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,6 +21,7 @@
21 */ 21 */
22 22
23#define _DEFAULT_SOURCE 23#define _DEFAULT_SOURCE
24#define _BSD_SOURCE
24#define _GNU_SOURCE 25#define _GNU_SOURCE
25 26
26#ifdef HAVE_CONFIG_H 27#ifdef HAVE_CONFIG_H