I have one more problem with 3.0.20 configure.in file on MAC-OSX/CYGWIN system. While checking for struct timespec, it does not make sense to include aio.h header file. On MAC OSX or CYGWIN systems there is no aio.h header file. The 'struct timespec' check fails because of aio.h file though the 'struct timespec' defined on these systems. Later on I get the redefinition problem for 'struct timespec' because HAVE_TIME_SPEC is not properly defined. AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [ AC_TRY_COMPILE([ #include <sys/types.h> #if STDC_HEADERS #include <stdlib.h> #include <stddef.h> #endif #include <time.h> #include <aio.h>],[struct timespec ts;], samba_cv_struct_timespec=yes,samba_cv_struct_timespec=no)]) if test x"$samba_cv_struct_timespec" = x"yes"; then AC_DEFINE(HAVE_STRUCT_TIMESPEC,1,[Whether we have struct timespec]) fi Thanks SAM SHARMA
Never mind this is already fixed in samba 3.0.20b.