aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2016-05-07 17:36:32 +0200
committerDavid du Colombier <0intro@gmail.com>2016-11-20 09:37:58 +0000
commit657f699ef7e5a91a529337cac76ed48c68a28583 (patch)
treee1b11cad08c0910e4f7c3ff305900bf233b6ffb2 /src/cmd/troff
parent1b68dbef7b7dd7c4aa2b5755c1399cf66d2ea6fa (diff)
downloadplan9port-657f699ef7e5a91a529337cac76ed48c68a28583.tar.gz
plan9port-657f699ef7e5a91a529337cac76ed48c68a28583.tar.bz2
plan9port-657f699ef7e5a91a529337cac76ed48c68a28583.zip
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 (limited to 'src/cmd/troff')
-rw-r--r--src/cmd/troff/n2.c1
-rw-r--r--src/cmd/troff/n7.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/troff/n2.c b/src/cmd/troff/n2.c
index 6495d330..2943e553 100644
--- a/src/cmd/troff/n2.c
+++ b/src/cmd/troff/n2.c
@@ -5,6 +5,7 @@
*/
#define _BSD_SOURCE 1 /* popen */
+#define _DEFAULT_SOURCE 1
#include "tdef.h"
#include "fns.h"
#include "ext.h"
diff --git a/src/cmd/troff/n7.c b/src/cmd/troff/n7.c
index 17ab2bd5..15bcfd5b 100644
--- a/src/cmd/troff/n7.c
+++ b/src/cmd/troff/n7.c
@@ -1,4 +1,5 @@
#define _BSD_SOURCE 1 /* isascii */
+#define _DEFAULT_SOURCE 1
#include "tdef.h"
#include "fns.h"
#include "ext.h"