]> granicus.if.org Git - vim/commitdiff
patch 8.2.3958: build failure compiling xxd with "-std=c2x" v8.2.3958
authorYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 31 Dec 2021 17:33:47 +0000 (17:33 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 31 Dec 2021 17:33:47 +0000 (17:33 +0000)
Problem:    Build failure compiling xxd with "-std=c2x".
Solution:   define _XOPEN_SOURCE. (Yegappan Lakshmanan, closes #9444)

src/version.c
src/xxd/xxd.c

index 0431474000135a69574a5f1a94af7fb85af15409..80f50483592900ed90cc410d595730c30b4ec327 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3958,
 /**/
     3957,
 /**/
index cf2a3569f52e50eb7a58b866c0d18585bb8fcfdd..c32b9b8fbe2c2101b543acc6ce44f13503d2f678 100644 (file)
 # 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>