patches/strace/4.5.17/150-undef-CTL_PROC.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
parent 747 d3e603e7c17c
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/150-undef-CTL_PROC.patch
     2 -= BEGIN original header =-
     3 diff -dur strace-4.5.16.orig/system.c strace-4.5.16/system.c
     4 -= END original header =-
     5 diff -durN strace-4.5.17.orig/system.c strace-4.5.17/system.c
     6 --- strace-4.5.17.orig/system.c	2007-01-17 00:22:36.000000000 +0100
     7 +++ strace-4.5.17/system.c	2008-10-24 21:30:13.000000000 +0200
     8 @@ -1612,7 +1612,9 @@
     9  	{ CTL_KERN, "CTL_KERN" },
    10  	{ CTL_VM, "CTL_VM" },
    11  	{ CTL_NET, "CTL_NET" },
    12 +#ifdef CTL_PROC
    13  	{ CTL_PROC, "CTL_PROC" },
    14 +#endif
    15  	{ CTL_FS, "CTL_FS" },
    16  	{ CTL_DEBUG, "CTL_DEBUG" },
    17  	{ CTL_DEV, "CTL_DEV" },