1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * Public domain * sys/time.h compatibility shim */ #ifndef LIBCRYPTOCOMPAT_SYS_TIME_H #define LIBCRYPTOCOMPAT_SYS_TIME_H #ifdef _MSC_VER #include <winsock2.h> int gettimeofday(struct timeval *tp, void *tzp); #else #include_next <sys/time.h> #endif #endif