> Thanks for the patch, what if you only wrap the include by #ifdef > HAVE_UNISTD_H? > > Something like: > #ifdef HAVE_UNISTD_H > #include <unistd.h> > #endif > > We have a similar bug for OS X > https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1776, which I haven't > had time to look into yet.
BTW, is there a real need to check for FreeBSD and its version? Just unconditionally including unistd.h (well, as long as HAVE_UNISTD_H is defined of course) looks like a safe proposition... On the other hand, including <sys/types.h> *instead of* unistd.h should be sufficient, and more "correct"... I don't know how these things are arranged on FreeBSD, though. Eugene
signature.asc
Description: OpenPGP digital signature
_______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
