Skip to content

Commit a7211de

Browse files
committed
Include unistd.h before cheching _POSIX_MAPPED_FILES
1 parent f682bc1 commit a7211de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/prism/util/pm_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <stddef.h>
1414
#include <stdlib.h>
1515
#include <string.h>
16+
#include <unistd.h>
1617

1718
// The following headers are necessary to read files using demand paging.
1819
#ifdef _WIN32
@@ -21,7 +22,6 @@
2122
#include <fcntl.h>
2223
#include <sys/mman.h>
2324
#include <sys/stat.h>
24-
#include <unistd.h>
2525
#endif
2626

2727
/**

0 commit comments

Comments
 (0)