diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-31 17:33:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 17:33:47 +0000 |
commit | ef089f50f9d6685c7a0ab94f9133576d7beec32b (patch) | |
tree | 347e4a24974dccf79344b31649c42f6c67ca4b92 /src | |
parent | 1a9922243a90f213894d5c58cd063465eea3350f (diff) |
patch 8.2.3958: build failure compiling xxd with "-std=c2x"v8.2.3958
Problem: Build failure compiling xxd with "-std=c2x".
Solution: define _XOPEN_SOURCE. (Yegappan Lakshmanan, closes #9444)
Diffstat (limited to 'src')
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/xxd/xxd.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index 0431474000..80f5048359 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3958, +/**/ 3957, /**/ 3956, diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c index cf2a3569f5..c32b9b8fbe 100644 --- a/src/xxd/xxd.c +++ b/src/xxd/xxd.c @@ -72,6 +72,10 @@ # define CYGWIN #endif +#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__) +# define _XOPEN_SOURCE 700 /* for fdopen() */ +#endif + #include <stdio.h> #ifdef VAXC # include <file.h> |