]> granicus.if.org Git - check/commitdiff
libcompat.h: Include additional headers if MSVC
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:06 +0000 (03:04 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 25 Dec 2013 03:04:06 +0000 (03:04 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@932 64e312b2-a51f-0410-8e61-82d0ca0eb02a

lib/libcompat.h

index c09bf7bc1986a8811e5a6a7ee5485f44336ad3d4..b1f2911b4608a8e7cb3931d8b0ea2c31cb36bcde 100644 (file)
 #define CK_ATTRIBUTE_NORETURN
 #endif /* GCC 2.5 */
 
+#if _MSC_VER
+#include <WinSock2.h> /* struct timeval, API used in gettimeofday implementation */
+#include <io.h> /* read, write */
+#include <process.h> /* getpid */
+#endif /* _MSC_VER */
+
 /* defines size_t */
 #include <sys/types.h>