You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
828 B

  1. diff -urN a/configure.ac b/configure.ac
  2. --- a/configure.ac
  3. +++ b/configure.ac
  4. @@ -1208,6 +1208,7 @@
  5. AC_TYPE_PID_T
  6. AC_TYPE_SIZE_T
  7. AC_CHECK_MEMBERS([struct stat.st_rdev])
  8. +AC_CHECK_MEMBERS([struct timespec.tv_sec],[],[],[[#include <time.h>]])
  9. AC_HEADER_TIME
  10. AC_STRUCT_TM
  11. AC_C_VOLATILE
  12. diff -urN a/lib/include/hgfsUtil.h b/lib/include/hgfsUtil.h
  13. --- a/lib/include/hgfsUtil.h
  14. +++ b/lib/include/hgfsUtil.h
  15. @@ -53,13 +53,7 @@
  16. # include <time.h>
  17. # endif
  18. # include "vm_basic_types.h"
  19. -# if !defined _STRUCT_TIMESPEC && \
  20. - !defined _TIMESPEC_DECLARED && \
  21. - !defined __timespec_defined && \
  22. - !defined sun && \
  23. - !defined __FreeBSD__ && \
  24. - !__APPLE__ && \
  25. - !defined _WIN32
  26. +# if !defined HAVE_STRUCT_TIMESPEC_TV_SEC
  27. struct timespec {
  28. time_t tv_sec;
  29. long tv_nsec;