summaryrefslogtreecommitdiff
path: root/libgphoto2/gphoto2-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2/gphoto2-file.c')
-rw-r--r--libgphoto2/gphoto2-file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c
index da84f328c..ae057a8c9 100644
--- a/libgphoto2/gphoto2-file.c
+++ b/libgphoto2/gphoto2-file.c
@@ -26,6 +26,7 @@
*/
#define _POSIX_SOURCE
#define _DEFAULT_SOURCE
+#define _DARWIN_C_SOURCE
#include "config.h"
#include <gphoto2/gphoto2-file.h>