Patch 8.2.3566
Problem:    Build failure on old systems when using nano timestamp.
Solution:   Define _BSD_SOURCE, _SVID_SOURCE and _DEFAULT_SOURCE. (Gary
            Johnson, closes #9054)
Files:      src/vim.h


*** ../vim-8.2.3565/src/vim.h   2021-10-24 20:34:01.430895189 +0100
--- src/vim.h   2021-10-28 19:24:56.692737702 +0100
***************
*** 43,48 ****
--- 43,63 ----
  // 700 is needed for mkdtemp().
  #  ifndef _XOPEN_SOURCE
  #   define _XOPEN_SOURCE    700
+ 
+ // On old systems, defining _XOPEN_SOURCE causes _BSD_SOURCE, _SVID_SOURCE
+ // and/or // _DEFAULT_SOURCE not to be defined, so do that here.  Those are
+ // needed to include nanosecond-resolution timestamps in struct stat.  On new
+ // systems, _DEFAULT_SOURCE is needed to avoid warning messages about using
+ // deprecated _BSD_SOURCE or _SVID_SOURCE.
+ #   ifndef _BSD_SOURCE
+ #    define _BSD_SOURCE 1
+ #   endif
+ #   ifndef _SVID_SOURCE
+ #    define _SVID_SOURCE 1
+ #   endif
+ #   ifndef _DEFAULT_SOURCE
+ #    define _DEFAULT_SOURCE 1
+ #   endif
  #  endif
  # endif
  
*** ../vim-8.2.3565/src/version.c       2021-10-26 11:59:56.046804239 +0100
--- src/version.c       2021-10-28 20:48:50.899619810 +0100
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     3566,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211028194943.EDD0EC80053%40moolenaar.net.

Raspunde prin e-mail lui