Skip to content

Commit

Permalink
Fix Clang warning about undeclared function in mmap test
Browse files Browse the repository at this point in the history
Clang on Linux complains that "creat" isn't declared. According to
POSIX, the declaration is in fcntl.h.

Issue: eng/toolchain/gnatcoll-core#62
  • Loading branch information
sebastianpoeplau committed Jul 17, 2024
1 parent 8e2282b commit b440db6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testsuite/tests/mmap/c_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>

/* We don't use standard lseek implementation on Windows otherwise
* creating very large file will be inefficient as mingw lseek will
Expand Down

0 comments on commit b440db6

Please sign in to comment.