osdep: Conditionally include non-Windows headers

This commit is contained in:
Lioncash 2019-01-28 09:24:17 -05:00
parent 977ad292b3
commit 3d4f37b78f
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -84,17 +84,20 @@ typedef __float128 _Float128;
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #ifndef _MSC_VER
#include <strings.h> #include <strings.h>
#include <unistd.h>
#include <sys/time.h>
#endif
#include <string.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>
#include <time.h> #include <time.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h>
#include <assert.h> #include <assert.h>
/* setjmp must be declared before sysemu/os-win32.h /* setjmp must be declared before sysemu/os-win32.h
* because it is redefined there. */ * because it is redefined there. */