[Pkg-nethack-devel] nethack/debian/patches 09_use_gnu_source.dpatch,NONE,1.1 00list,1.5,1.6 09_use_gnu.dpatch,1.1,NONE

Joshua Kwan joshk-guest@quantz.debian.org
Mon, 13 Oct 2003 17:44:16 +0000


Update of /cvsroot/pkg-nethack/nethack/debian/patches
In directory quantz:/tmp/cvs-serv10632/debian/patches

Modified Files:
	00list 
Added Files:
	09_use_gnu_source.dpatch 
Removed Files:
	09_use_gnu.dpatch 
Log Message:
this name is a misnomer


Index: 00list
===================================================================
RCS file: /cvsroot/pkg-nethack/nethack/debian/patches/00list,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- 00list	13 Oct 2003 01:05:52 -0000	1.5
+++ 00list	13 Oct 2003 17:44:14 -0000	1.6
@@ -5,7 +5,7 @@
 05_build_cflags
 06_x11_data
 08_linux_specifics
-09_use_gnu
+09_use_gnu_source
 10_gnome_add_quiver
 12_lisp_windowing
 13_qt_warning_fixes

--- 09_use_gnu.dpatch DELETED ---

--- NEW FILE: 09_use_gnu_source.dpatch ---
#! /bin/sh -e
## 09_use_gnu_source.dpatch by Joshua Kwan <joshk@triplehelix.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Define _GNU_SOURCE for RTLD_NEXT.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1;;
esac

exit 0

--- a/sys/unix/unixres.c~	2003-10-06 22:02:16.000000000 -0700
+++ b/sys/unix/unixres.c	2003-10-06 22:02:33.000000000 -0700
@@ -21,6 +21,7 @@
 # if defined(LINUX)
 
 /* requires dynamic linking with libc */
+#define _GNU_SOURCE
 #include <dlfcn.h>
 
 static int