Blame SOURCES/telnet-0.17-conf.patch

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