diff options
author | RafaĆ Hirsz <rafal@hirsz.co> | 2021-01-29 07:54:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 07:54:08 +0100 |
commit | fde666be126c07d2f50c79f6d49182b2c6c54a42 (patch) | |
tree | a2c1177f428c430217db58199a3fd9486b1ca156 /libgphoto2_port | |
parent | feef6d1524317be457dbf78ebae41913f22389b5 (diff) | |
download | libgphoto2-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.c | 1 |
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__ |