Bug 3261 - when checking for 'struct timespec', should not include aio.h
when checking for 'struct timespec', should not include aio.h
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.9
PPC Mac OS X
: P3 critical
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-14 17:36 UTC by SAM SHARMA
Modified: 2005-11-15 12:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SAM SHARMA 2005-11-14 17:36:11 UTC
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
Comment 1 SAM SHARMA 2005-11-15 10:28:12 UTC
Never mind this is already fixed in samba 3.0.20b.