Skip to content
Snippets Groups Projects
Commit 0e7a7866 authored by Raphael S. Carvalho's avatar Raphael S. Carvalho Committed by Pekka Enberg
Browse files

tst-fsx.c: Fix: fallocate() is defined when FALLOCATE is defined

parent e89cc204
No related branches found
No related tags found
No related merge requests found
......@@ -832,7 +832,7 @@ dotruncate(unsigned size)
}
}
#ifdef FALLOC_FL_PUNCH_HOLE
#if defined(FALLOC_FL_PUNCH_HOLE) && defined(FALLOCATE)
void
do_punch_hole(unsigned offset, unsigned length)
{
......@@ -1322,7 +1322,7 @@ test_fallocate()
void
test_punch_hole()
{
#ifdef FALLOC_FL_PUNCH_HOLE
#if defined(FALLOC_FL_PUNCH_HOLE) && defined(FALLOCATE)
if (!lite && punch_hole_calls) {
if (fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
0, 1) && errno == EOPNOTSUPP) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment