Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/sys/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ extern "C" {

#ifdef _WIN32

#if (_MSC_VER < 1900)
#if defined (_MSC_VER) && (_MSC_VER < 1900)
struct timespec {
time_t tv_sec;
long tv_nsec;
Expand Down
3 changes: 3 additions & 0 deletions src/windows/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#define _KQUEUE_WINDOWS_PLATFORM_H

/* Require Windows Server 2003 or later */
#if WINVER < 0x0502
#define WINVER 0x0502
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0502
#endif
Expand All @@ -28,6 +30,7 @@
#include <io.h>
#include <malloc.h>
#include <sys/stat.h>
#include <errno.h>

#include "../common/queue.h"

Expand Down