summaryrefslogtreecommitdiff
path: root/test/switchlevels.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/switchlevels.c')
-rw-r--r--test/switchlevels.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/switchlevels.c b/test/switchlevels.c
index 0f850113e2..a4ec4b7c76 100644
--- a/test/switchlevels.c
+++ b/test/switchlevels.c
@@ -2,6 +2,8 @@
* Each chunk is compressed with a user-specified level.
*/
+#define _POSIX_SOURCE 1 /* This file needs POSIX for fileno(). */
+
#include "zbuild.h"
#ifdef ZLIB_COMPAT
# include "zlib.h"