tinclude: define _DEFAULT_SOURCE - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 657f699ef7e5a91a529337cac76ed48c68a28583
 (DIR) parent 1b68dbef7b7dd7c4aa2b5755c1399cf66d2ea6fa
 (HTM) Author: David du Colombier <0intro@gmail.com>
       Date:   Sat,  7 May 2016 17:36:32 +0200
       
       include: define _DEFAULT_SOURCE
       
       Since glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE macros are
       deprecated in favor of the _DEFAULT_SOURCE macro.
       
       See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes
       
       Change-Id: I18dd6a698f3f5aa51d1e45bf53b031bb061e17e8
       Reviewed-on: https://plan9port-review.googlesource.com/1500
       Reviewed-by: David du Colombier <0intro@gmail.com>
       
       Diffstat:
         M include/u.h                         |       1 +
         M src/cmd/grap/main.c                 |       1 +
         M src/cmd/rio/menu.c                  |       1 +
         M src/cmd/troff/n2.c                  |       1 +
         M src/cmd/troff/n7.c                  |       1 +
         M src/lib9/utf/utfecpy.c              |       1 +
       
       6 files changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/include/u.h b/include/u.h
       t@@ -19,6 +19,7 @@ extern "C" {
        #define _BSD_SOURCE 1
        #define _NETBSD_SOURCE 1        /* NetBSD */
        #define _SVID_SOURCE 1
       +#define _DEFAULT_SOURCE 1
        #if !defined(__APPLE__) && !defined(__OpenBSD__)
        #        define _XOPEN_SOURCE 1000
        #        define _XOPEN_SOURCE_EXTENDED 1
 (DIR) diff --git a/src/cmd/grap/main.c b/src/cmd/grap/main.c
       t@@ -1,4 +1,5 @@
        #define _BSD_SOURCE 1        /* strdup, mkstemp */
       +#define _DEFAULT_SOURCE 1
        #include <stdio.h>
        #include <signal.h>
        #include <math.h>
 (DIR) diff --git a/src/cmd/rio/menu.c b/src/cmd/rio/menu.c
       t@@ -4,6 +4,7 @@
        
        /* Copyright (c) 1994-1996 David Hogan, see README for licence details */
        #define _SVID_SOURCE 1        /* putenv in glibc */
       +#define _DEFAULT_SOURCE 1
        #include <stdio.h>
        #include <signal.h>
        #include <unistd.h>
 (DIR) diff --git a/src/cmd/troff/n2.c b/src/cmd/troff/n2.c
       t@@ -5,6 +5,7 @@
         */
        
        #define _BSD_SOURCE 1        /* popen */
       +#define _DEFAULT_SOURCE 1
        #include "tdef.h"
        #include "fns.h"
        #include "ext.h"
 (DIR) diff --git a/src/cmd/troff/n7.c b/src/cmd/troff/n7.c
       t@@ -1,4 +1,5 @@
        #define _BSD_SOURCE 1        /* isascii */
       +#define _DEFAULT_SOURCE 1
        #include "tdef.h"
        #include "fns.h"
        #include "ext.h"
 (DIR) diff --git a/src/lib9/utf/utfecpy.c b/src/lib9/utf/utfecpy.c
       t@@ -12,6 +12,7 @@
         * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
         */
        #define _BSD_SOURCE 1        /* memccpy */
       +#define _DEFAULT_SOURCE 1
        #include <stdarg.h>
        #include <string.h>
        #include "plan9.h"