From f01457b003d3b0d996f1f2e97112015b8df26fdb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 19 Sep 2014 13:54:45 +0200 Subject: This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCE warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE Commit 4f537d8e4bd9707a0048289f296510b76ce6d642 just fixed one of three cases. Fix the remaining. --- editor.c | 1 + text.c | 1 + 2 files changed, 2 insertions(+) diff --git a/editor.c b/editor.c index e0f27cf..367c40b 100644 --- a/editor.c +++ b/editor.c @@ -1,3 +1,4 @@ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include #include diff --git a/text.c b/text.c index 58ded1d..e613ccb 100644 --- a/text.c +++ b/text.c @@ -13,6 +13,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include #include -- cgit v1.2.3