Could you define _XOPEN_SOURCE dependend on __GLIBC__ in rs-utils.c? It hides _SC_NPROCESSORS_ONLN on (Free)BSD since it's not POSIX, and XOPEN_SOURCE defines POSIX_C_SOURCE on FreeBSD.
realpath and strptime are defined without _XOPEN_SOURCE in FreeBSD (and Net- and OpenBSD it seems). After searching the web it can have other unwanted effects on non-linux systems (as mentioned e.g. here http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00671.html) We could put #if (defined __GLIBC__ || defined __GNU_LIBRARY__) #define _XOPEN_SOURCE 500 /* strptime() and realpath() */ #endif at the start of rs-utils.c. Does that sound reasonable? Thanks, Mathias -- "If we knew what we were doing, it wouldn't be called research..." -- A. Einstein _______________________________________________ Rawstudio-users mailing list [email protected] http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-users
