From 75bc35899c2b97e2b8f7704247a81cb6c21998f5 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 16 Nov 2016 22:33:34 +0000 Subject: Add poorly-named _DEFAULT_SOURCE to all files that had _BSD_SOURCE or _SVID_SOURCE, because for some reason GNU C library is replacing the latter with the former. This eliminates compiler warnings about _BSD_SOURCE/_SVID_SOURCE being deprecated git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2836 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- other/pamx/pamx.c | 1 + other/pamx/window.c | 1 + 2 files changed, 2 insertions(+) (limited to 'other/pamx') diff --git a/other/pamx/pamx.c b/other/pamx/pamx.c index e22693ea..35900f82 100644 --- a/other/pamx/pamx.c +++ b/other/pamx/pamx.c @@ -3,6 +3,7 @@ Copyright information is in the file COPYRIGHT */ +#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ #define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Make sure strdup() is in */ #include diff --git a/other/pamx/window.c b/other/pamx/window.c index e2de1577..d907163b 100644 --- a/other/pamx/window.c +++ b/other/pamx/window.c @@ -6,6 +6,7 @@ See COPYRIGHT file for copyright information. */ +#define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ #define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Make sure strcaseeq() is in nstring.h */ -- cgit 1.4.1