summaryrefslogtreecommitdiff
path: root/libgphoto2_port
diff options
context:
space:
mode:
authorRafaƂ Hirsz <rafal@hirsz.co>2021-01-29 07:54:08 +0100
committerGitHub <noreply@github.com>2021-01-29 07:54:08 +0100
commitfde666be126c07d2f50c79f6d49182b2c6c54a42 (patch)
treea2c1177f428c430217db58199a3fd9486b1ca156 /libgphoto2_port
parentfeef6d1524317be457dbf78ebae41913f22389b5 (diff)
downloadlibgphoto2-fde666be126c07d2f50c79f6d49182b2c6c54a42.tar.gz
Add _DARWIN_C_SOURCE to most files that use string.h (#615)
This change makes it possible to build libgphoto2 on macOS.
Diffstat (limited to 'libgphoto2_port')
-rw-r--r--libgphoto2_port/serial/unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2_port/serial/unix.c b/libgphoto2_port/serial/unix.c
index 44a22b219..9b8165df6 100644
--- a/libgphoto2_port/serial/unix.c
+++ b/libgphoto2_port/serial/unix.c
@@ -28,6 +28,7 @@
*/
#define _DEFAULT_SOURCE
+#define _DARWIN_C_SOURCE
/* Solaris needs this */
#define __EXTENSIONS__