diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2021-05-25 17:46:46 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-05-27 12:39:23 +0200 |
commit | 414ec0f00d85394849d0ce26c799faf094e2b6fb (patch) | |
tree | f1368477f9f48995d2b75fa95569e92b4e9bdbbe /test | |
parent | 8b5630050aa541c2e49632bf2dc69b70f4120f5d (diff) |
Fix build under Cygwin.
Diffstat (limited to 'test')
-rw-r--r-- | test/minideflate.c | 3 | ||||
-rw-r--r-- | test/switchlevels.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/minideflate.c b/test/minideflate.c index 3925168..8ce57fa 100644 --- a/test/minideflate.c +++ b/test/minideflate.c @@ -3,6 +3,9 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#define _POSIX_SOURCE 1 /* This file needs POSIX for fileno(). */ +#define _POSIX_C_SOURCE 200112 /* For snprintf(). */ + #include <stdio.h> #include <stddef.h> #include <stdint.h> diff --git a/test/switchlevels.c b/test/switchlevels.c index 0f85011..a4ec4b7 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" |