8000 Fix compilation on libmusl. (#4686) · ashang/arangodb@4f0de29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f0de29

Browse files
authored
Fix compilation on libmusl. (arangodb#4686)
`blksize_t` is only defined in `sys/types.h`.
1 parent da1dd2b commit 4f0de29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

3rdParty/iresearch/core/utils/file_utils.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#define IR_FADVICE_NOREUSE 5
5353
#else
5454
#include <unistd.h> // close
55+
#include <sys/types.h>
5556
#define file_blksize_t blksize_t
5657
#define file_path_delimiter '/'
5758
#define file_path_t char*
@@ -170,4 +171,4 @@ bool file_sync(int fd) NOEXCEPT;
170171
NS_END
171172
NS_END
172173

173-
#endif
174+
#endif

0 commit comments

Comments
 (0)
0