To: vim_dev@googlegroups.com Subject: Patch 8.2.3958 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3958 Problem: Build failure compiling xxd with "-std=c2x". Solution: define _XOPEN_SOURCE. (Yegappan Lakshmanan, closes #9444) Files: src/xxd/xxd.c *** ../vim-8.2.3957/src/xxd/xxd.c 2021-12-01 11:24:46.784558743 +0000 --- src/xxd/xxd.c 2021-12-31 17:33:03.755542311 +0000 *************** *** 72,77 **** --- 72,81 ---- # define CYGWIN #endif + #if (defined(__linux__) && !defined(__ANDROID__)) || defined(__CYGWIN__) + # define _XOPEN_SOURCE 700 /* for fdopen() */ + #endif + #include #ifdef VAXC # include *** ../vim-8.2.3957/src/version.c 2021-12-31 17:25:44.044304828 +0000 --- src/version.c 2021-12-31 17:33:31.027494685 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3958, /**/ -- An error has occurred. Hit any user to continue. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///