summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-10-18 18:12:59 +0200
committerMarcus Meissner <marcus@jet.franken.de>2020-10-18 18:13:42 +0200
commitac4546e0dddf580c7e7558531818423dd3c81c3f (patch)
tree4b5dfb9bed11c533020a35eab2f007895b6fc5d4 /libgphoto2_port
parentd055ca9c9c3d1efc920ac5bf99ba43c7b5470348 (diff)
downloadlibgphoto2-ac4546e0dddf580c7e7558531818423dd3c81c3f.tar.gz
define _DARWIN_C_SOURCE for strdup on MacOS. fixes https://github.com/gphoto/libgphoto2/issues/552
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
index ee65e8e20..7c5acd6b7 100644
--- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
+++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
@@ -21,6 +21,7 @@
* Boston, MA 02110-1301 USA
*/
#define _GNU_SOURCE
+#define _DARWIN_C_SOURCE
#include "config.h"