diff options
author | root <root> | 2010-12-01 07:30:38 +0000 |
---|---|---|
committer | root <root> | 2010-12-01 07:30:38 +0000 |
commit | 31d3c116144301b51fc50ad7934fe6f988b7029c (patch) | |
tree | 208e7ae4233f9db310149fb64e176cab6cce921f /libeio.m4 | |
parent | c1a31f9b5959a69750e5d2e75e7aaafde7f53f76 (diff) |
futimes/utimes
Diffstat (limited to 'libeio.m4')
-rw-r--r-- | libeio.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -5,6 +5,20 @@ AC_SEARCH_LIBS( [AC_MSG_ERROR(pthread functions not found)] ) +AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([[ +#include <sys/types.h> +#include <sys/time.h> +#include <utime.h> +struct timeval tv[2]; +int res; +int main (void) +{ + res = utimes ("/", tv); + return 0; +} +]],ac_cv_utimes=yes,ac_cv_utimes=no)]) +test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available) + AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ #include <sys/types.h> #include <sys/time.h> |