Thanks for the quick reply! Bernd Zeimetz <[email protected]> writes:
> which cpp define matches kfreebsd properly? freebsd doesn't need unistd.h. unistd.h is available on all POSIX systems, and kFreeBSD does in fact need it here: https://buildd.debian.org/status/fetch.php?pkg=gpsd&arch=kfreebsd-amd64&ver=3.17-3&stamp=1509123370&raw=0 https://buildd.debian.org/status/fetch.php?pkg=gpsd&arch=kfreebsd-i386&ver=3.17-3&stamp=1509122881&raw=0 If you really want to leave it off on pure FreeBSD, I'd suggest conditionalizing on __GLIBC__. (FTR, kFreeBSD defines __FreeBSD_kernel__, but so does pure FreeBSD, so you need an additional macro to distinguish them.) -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/[email protected]

