hi, preparing a platform that has no S_IFSOCK/S_ISSOCK, i protected the hb alikes like this:
include/hbapifs.h: #if defined( S_ISSOCK ) # define HB_FA_SOCKET HB_FA_SPARSE /* S_ISSOCK() */ #endif src/common/hbffind.c: #if defined( S_ISSOCK ) if( S_ISSOCK( raw_attr ) ) ulAttr |= HB_FA_SOCKET; #endif this, on a platform that does have S_ISSOCK, results in cc -DHB_OS_OPENSERVER6 -I. -I../../../../../include -K udk -K pthread -o hbffind.o -c ../../../hbffind.c UX:acomp: ERROR: "../../../hbffind.c", line 246: undefined symbol: HB_FA_SOCKET UX:acomp: ERROR: "../../../hbffind.c", line 318: undefined symbol: HB_FA_SOCKET this seems to be correct, since hbapifs.h doesn't (directly or indirectly) include <sys/stat.h>, thus has no knowledge of macros/flags actually defined in the system. -- [-] mkdir /nonexistent _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
