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.

27 lines
728 B

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