r3447: more include/system/XXX.h include files
[jelmer/samba4-debian.git] / source / ntvfs / posix / config.m4
1 SMB_MODULE_MK(ntvfs_posix, NTVFS, STATIC, ntvfs/config.mk)
2
3
4 dnl #############################################
5 dnl see if we have nanosecond resolution for stat
6 AC_CACHE_CHECK([for tv_nsec nanosecond fields in struct stat],ac_cv_have_stat_tv_nsec,[
7 AC_TRY_COMPILE(
8 [
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <unistd.h>
12 ],
13 [struct stat st; 
14  st.st_mtim.tv_nsec;
15  st.st_atim.tv_nsec;
16  st.st_ctim.tv_nsec;
17 ],
18 ac_cv_decl_have_stat_tv_nsec=yes,
19 ac_cv_decl_have_stat_tv_nsec=no)
20 ])
21 if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then
22    AC_DEFINE(HAVE_STAT_TV_NSEC,1,[Whether stat has tv_nsec nanosecond fields])
23 fi
24
25