summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/torcs-glibc-default-source.patch
diff options
context:
space:
mode:
authorMaxim Cournoyer <[email protected]>2024-10-23 20:48:20 +0900
committerMaxim Cournoyer <[email protected]>2024-11-12 17:41:38 +0900
commit40625c213ad2007f70117518a7cc290d367e652a (patch)
tree900492fcfb67ecf76d7151d75c40987143cf3831 /gnu/packages/patches/torcs-glibc-default-source.patch
parentf0c27b2fa824a43bc6a6d056ec7a7c5c78c3a367 (diff)
gnu: Add torcs.
* gnu/packages/games.scm (torcs): New variable. Change-Id: I1e55fc65ff303c309fed50f2071de0eaf4266d57
Diffstat (limited to 'gnu/packages/patches/torcs-glibc-default-source.patch')
-rw-r--r--gnu/packages/patches/torcs-glibc-default-source.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/patches/torcs-glibc-default-source.patch b/gnu/packages/patches/torcs-glibc-default-source.patch
new file mode 100644
index 0000000000..eb74cfd4ce
--- /dev/null
+++ b/gnu/packages/patches/torcs-glibc-default-source.patch
@@ -0,0 +1,25 @@
+From: Aurelien Jarno <[email protected]>
+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}
+