Skip to content

Commit d8e5fa1

Browse files
brgoingigaw
authored andcommitted
mem-win: Remove unneeded includes and definitions.
Removes fsync definition and includes that are not needed for the functionality contained in mem-win.c. Signed-off-by: Broc Going<bgoing@micron.com>
1 parent 8262f6d commit d8e5fa1

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

libnvme/src/nvme/mem-win.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,17 @@
77
*/
88

99
#include <string.h>
10-
#include <errno.h>
11-
#include <limits.h>
1210
#include <malloc.h>
1311

14-
#include <io.h>
1512
#include <memoryapi.h>
1613
#include <sysinfoapi.h>
17-
#include <winsock2.h> /* for gethostname */
1814

1915
#include "compiler-attributes.h"
2016
#include "mem.h"
2117
#include "private.h"
2218

2319
#define HUGE_MIN 0x80000 /* policy threshold when large pages unavailable */
2420

25-
/* unistd.h POSIX compatibility */
26-
27-
#define fsync _commit
2821
static int getpagesize(void)
2922
{
3023
SYSTEM_INFO si;

0 commit comments

Comments
 (0)