aerospike / aerospike-client-c

Aerospike C Client
Other
98 stars 103 forks source link

compatibility issue with time.h on Windows platform #76

Closed yongningcds closed 6 years ago

yongningcds commented 6 years ago

redefinition of "struct timespec" compile time error. This is more of Windows problem, but I resolved it by adding #define HAVE_STRUCT_TIMESPEC before #include . Found solution here https://stackoverflow.com/questions/33557506/timespec-redefinition-error

BrianNichols commented 6 years ago

That is a known issue with the Windows pthread library. If you download the C client via nuget package manager, HAVE_STRUCT_TIMESPEC will automatically be defined for you.