Blame SOURCES/telnet-0.17-conf.patch

ce2f68
--- netkit-telnet-0.17/configure.confverb	2000-07-29 20:00:29.000000000 +0200
ce2f68
+++ netkit-telnet-0.17/configure	2004-07-05 10:50:36.492963840 +0200
ce2f68
@@ -263,14 +263,19 @@
ce2f68
 cat <<EOF >__conftest.cc
ce2f68
 #include <unistd.h>
ce2f68
 #include <signal.h>
ce2f68
-int count=0;
ce2f68
+volatile int count=0;
ce2f68
 void handle(int foo) { count++; }
ce2f68
 int main() {
ce2f68
+    sigset_t sset;
ce2f68
     int pid=getpid();
ce2f68
+    sigemptyset(&sset);
ce2f68
+    sigaddset(&sset, SIGINT);
ce2f68
+    sigprocmask(SIG_UNBLOCK, &sset, NULL);
ce2f68
     signal(SIGINT, handle);
ce2f68
     kill(pid,SIGINT);
ce2f68
     kill(pid,SIGINT);
ce2f68
     kill(pid,SIGINT);
ce2f68
+    sleep(1);
ce2f68
     if (count!=3) return 1;
ce2f68
     return 0;
ce2f68
 }