Blame SOURCES/telnet-0.17-conf.patch

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