gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
989 stars 316 forks source link

Fix build on Mac OS X #953

Closed colinleroy closed 5 months ago

colinleroy commented 5 months ago

Fixes #952

msmeissn commented 5 months ago

thanks, i saw the freebsd failures but was struggling a bit on them

colinleroy commented 5 months ago

thanks, i saw the freebsd failures but was struggling a bit on them

Apparently including unistd.h is not enough... Sorry about that, I don't know why!

msmeissn commented 5 months ago

There are some #define _FOO_SOURCE on top of those files, which we thought will help macOS / darwin builds, but they occasionaly block various other standard library functions.

hfiguiere commented 5 months ago

uint16_t with #include <stdint.h> should be the type used

types like int and short should be left behind.