summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2016-08-28 11:55:36 (GMT)
committerGitHub <noreply@github.com>2016-08-28 11:55:36 (GMT)
commit7f08131f9986f0c19f2683d023d1cd9fdab41e32 (patch)
tree77fdd51d65d2afa44b68d8f779665c4e4e90b07f /programs
parent5bd3eaa481f4446b03a062d12119ef11e0f46653 (diff)
parent3fa60044e77be14b187baac779a5ea72f800ab75 (diff)
downloadlz4-7f08131f9986f0c19f2683d023d1cd9fdab41e32.zip
lz4-7f08131f9986f0c19f2683d023d1cd9fdab41e32.tar.gz
lz4-7f08131f9986f0c19f2683d023d1cd9fdab41e32.tar.bz2
Merge pull request #226 from gsauthof/port-make
Fix POSIX portability and cmake file
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index b5b244e..12d48d1 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -49,7 +49,8 @@
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
#endif
-#define _POSIX_SOURCE 1 /* for fileno() within <stdio.h> on unix */
+/* cf. http://man7.org/linux/man-pages/man7/feature_test_macros.7.html */
+#define _XOPEN_VERSION 600 /* POSIX.2001, for fileno() within <stdio.h> on unix */
/****************************