Blame SOURCES/netkit-ftp-0.17-volatile.patch

04a9bc
--- netkit-ftp-0.17/configure.volatile	2004-06-14 12:08:26.000000000 -0400
04a9bc
+++ netkit-ftp-0.17/configure	2004-06-14 12:52:41.000000000 -0400
04a9bc
@@ -193,8 +193,8 @@
04a9bc
 cat <<EOF >__conftest.c
04a9bc
 #include <unistd.h>
04a9bc
 #include <signal.h>
04a9bc
-int count=0;
04a9bc
-void handle(int foo) { count++; }
04a9bc
+volatile int count=0;
04a9bc
+void handle(int foo) { count++; write(1,"X",1);}
04a9bc
 int main() {
04a9bc
     int pid=getpid();
04a9bc
     signal(SIGINT, handle);
04a9bc
@@ -209,20 +209,20 @@
04a9bc
 if (
04a9bc
       $CC $CFLAGS  __conftest.c  -o __conftest || exit 1
04a9bc
       ./__conftest || exit 1
04a9bc
-   ) >/dev/null 2>&1; then
04a9bc
+   ); then
04a9bc
     echo 'yes'
04a9bc
 else
04a9bc
     if (
04a9bc
           $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c  -o __conftest || exit 1
04a9bc
           ./__conftest || exit 1
04a9bc
-       ) >/dev/null 2>&1; then
04a9bc
+       ); then
04a9bc
         echo '-D__USE_BSD_SIGNAL'
04a9bc
         CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
04a9bc
     else
04a9bc
         echo 'no'
04a9bc
-        echo 'This package needs BSD signal semantics to run.'
04a9bc
-        rm -f __conftest*
04a9bc
-        exit
04a9bc
+        echo '***WARNING***: This package needs BSD signal semantics to run.'
04a9bc
+	echo '***WARNING***: Assuming its just ia64 buildroot breakage.'
04a9bc
+        CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
04a9bc
     fi
04a9bc
 fi
04a9bc
 rm -f __conftest*