#!/bin/sh /usr/share/dpatch/dpatch-run

@DPATCH@

diff -Naurp ncurses-5.6+20071103.orig/form/Makefile.in ncurses-5.6+20071103/form/Makefile.in
--- ncurses-5.6+20071103.orig/form/Makefile.in	2007-09-10 12:37:45.000000000 +0000
+++ ncurses-5.6+20071103/form/Makefile.in	2007-11-04 14:25:36.000000000 +0000
@@ -81,7 +81,7 @@ CFLAGS		= @CFLAGS@
 
 CPPFLAGS	= -I@top_srcdir@/ncurses -DHAVE_CONFIG_H @CPPFLAGS@
 
-CCFLAGS		= $(CPPFLAGS) $(CFLAGS)
+CCFLAGS		= $(CPPFLAGS) $(CFLAGS) -D_REENTRANT
 
 CFLAGS_LIBTOOL	= $(CCFLAGS)
 CFLAGS_NORMAL	= $(CCFLAGS)
diff -Naurp ncurses-5.6+20071103.orig/menu/Makefile.in ncurses-5.6+20071103/menu/Makefile.in
--- ncurses-5.6+20071103.orig/menu/Makefile.in	2007-09-10 12:37:45.000000000 +0000
+++ ncurses-5.6+20071103/menu/Makefile.in	2007-11-04 14:25:36.000000000 +0000
@@ -81,7 +81,7 @@ CFLAGS		= @CFLAGS@
 
 CPPFLAGS	= -I@top_srcdir@/ncurses -DHAVE_CONFIG_H @CPPFLAGS@
 
-CCFLAGS		= $(CPPFLAGS) $(CFLAGS)
+CCFLAGS		= $(CPPFLAGS) $(CFLAGS) -D_REENTRANT
 
 CFLAGS_LIBTOOL	= $(CCFLAGS)
 CFLAGS_NORMAL	= $(CCFLAGS)
diff -Naurp ncurses-5.6+20071103.orig/ncurses/Makefile.in ncurses-5.6+20071103/ncurses/Makefile.in
--- ncurses-5.6+20071103.orig/ncurses/Makefile.in	2007-09-10 12:39:03.000000000 +0000
+++ ncurses-5.6+20071103/ncurses/Makefile.in	2007-11-04 14:25:36.000000000 +0000
@@ -90,7 +90,7 @@ CFLAGS		= @CFLAGS@
 INCDIR		= $(srcdir)/../include
 CPPFLAGS	= -DHAVE_CONFIG_H -I../ncurses -I$(srcdir) @CPPFLAGS@
 
-CCFLAGS		= $(CPPFLAGS) $(CFLAGS)
+CCFLAGS		= $(CPPFLAGS) $(CFLAGS) -D_REENTRANT
 
 BUILD_CPPFLAGS	= -I../include @BUILD_CPPFLAGS@
 BUILD_CC	= @BUILD_CC@
diff -Naurp ncurses-5.6+20071103.orig/panel/Makefile.in ncurses-5.6+20071103/panel/Makefile.in
--- ncurses-5.6+20071103.orig/panel/Makefile.in	2007-09-10 12:37:45.000000000 +0000
+++ ncurses-5.6+20071103/panel/Makefile.in	2007-11-04 14:25:36.000000000 +0000
@@ -82,7 +82,7 @@ CFLAGS		= @CFLAGS@
 
 CPPFLAGS	= -I@top_srcdir@/ncurses -DHAVE_CONFIG_H @CPPFLAGS@
 
-CCFLAGS		= $(CPPFLAGS) $(CFLAGS)
+CCFLAGS		= $(CPPFLAGS) $(CFLAGS) -D_REENTRANT
 
 CFLAGS_LIBTOOL	= $(CCFLAGS)
 CFLAGS_NORMAL	= $(CCFLAGS)
