mirror of
https://github.com/samba-team/samba.git
synced 2025-10-22 07:33:16 +03:00
(recently Linux systems support this, allowing us to support the full resolution in NTTIME) - use nanosecond resolution in the posix backend if available - moved the configure tests and list of object files for the posix backend into ntvfs/posix/ to keep them more neatlly separated.
24 lines
627 B
Plaintext
24 lines
627 B
Plaintext
SMB_MODULE_MK(ntvfs_posix, NTVFS, STATIC, ntvfs/config.mk)
|
|
|
|
|
|
dnl #############################################
|
|
dnl see if we have nanosecond resolution for stat
|
|
AC_CACHE_CHECK([for tv_nsec nanosecond fields in struct stat],ac_cv_have_stat_tv_nsec,[
|
|
AC_TRY_COMPILE(
|
|
[
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
],
|
|
[struct stat st;
|
|
st.st_mtim.tv_nsec;
|
|
st.st_atim.tv_nsec;
|
|
st.st_ctim.tv_nsec;
|
|
],
|
|
ac_cv_decl_have_stat_tv_nsec=yes,
|
|
ac_cv_decl_have_stat_tv_nsec=no)
|
|
])
|
|
if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then
|
|
AC_DEFINE(HAVE_STAT_TV_NSEC,1,[Whether stat has tv_nsec nanosecond fields])
|
|
fi
|