summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/config.c b/examples/config.c
index fd07a3a23..a1591b225 100644
--- a/examples/config.c
+++ b/examples/config.c
@@ -1,3 +1,4 @@
+#define _DARWIN_C_SOURCE
#include "samples.h"
#include <string.h>