aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/torcs-glibc-default-source.patch
blob: eb74cfd4cebb678beef5f4fb35fc192514390dc7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Mon, 1 May 2017 15:58:31 +0200
Subject: glibc default source

_SVID_SOURCE and _BSD_SOURCE are deprecated, using _DEFAULT_SOURCE
instead.

Forwarded: https://sourceforge.net/p/torcs/mailman/message/35831161/
---
 Make-config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Make-config.in b/Make-config.in
index f0e0a12..8041327 100644
--- a/Make-config.in
+++ b/Make-config.in
@@ -48,7 +48,7 @@ INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 
-CFLAGSD = -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DHAVE_CONFIG_H
+CFLAGSD = -D_DEFAULT_SOURCE -DSHM -DHAVE_CONFIG_H
 CXXFLAGS =  @CXXFLAGS@ @CPPFLAGS@ ${CFLAGSD}
 CFLAGS   =  @CFLAGS@ ${CFLAGSD}