]>
Commit | Line | Data |
---|---|---|
34d334a1 JK |
1 | diff -durN bzflag.orig/src/net/Address.cxx bzflag/src/net/Address.cxx |
2 | --- bzflag.orig/src/net/Address.cxx Fri Mar 9 02:12:55 2001 | |
3 | +++ bzflag/src/net/Address.cxx Thu Mar 15 15:16:22 2001 | |
4 | @@ -98,7 +98,7 @@ | |
5 | return BzfString(inet_ntoa(addr)); | |
6 | } | |
7 | ||
8 | -#if !defined(_WIN32) | |
9 | +#if 0 | |
10 | static jmp_buf alarmEnv; | |
11 | static void onAlarm(int) | |
12 | { | |
13 | @@ -126,7 +126,7 @@ | |
14 | return a; | |
15 | } | |
16 | else { // non-local address | |
17 | -#if !defined(_WIN32) | |
18 | +#if 0 | |
19 | // set alarm to avoid waiting too long | |
20 | SIG_PF oldAlarm = bzSignal(SIGALRM, SIG_PF(onAlarm)); | |
21 | if (oldAlarm != SIG_ERR) { | |
22 | @@ -144,7 +144,7 @@ | |
23 | ||
24 | hent = gethostbyname(hname); | |
25 | ||
26 | -#if !defined(_WIN32) | |
27 | +#if 0 | |
28 | if (oldAlarm != SIG_ERR) { | |
29 | alarm(0); | |
30 | bzSignal(SIGALRM, oldAlarm); | |
31 | @@ -163,7 +163,7 @@ | |
32 | ||
33 | BzfString Address::getHostByAddress(InAddr addr) | |
34 | { | |
35 | -#if !defined(_WIN32) | |
36 | +#if 0 | |
37 | // set alarm to avoid waiting too long | |
38 | SIG_PF oldAlarm = bzSignal(SIGALRM, SIG_PF(onAlarm)); | |
39 | if (oldAlarm != SIG_ERR) { | |
40 | @@ -180,7 +180,7 @@ | |
41 | int addrLen = sizeof(addr); | |
42 | struct hostent* hent = gethostbyaddr((char*)&addr, addrLen, AF_INET); | |
43 | ||
44 | -#if !defined(_WIN32) | |
45 | +#if 0 | |
46 | if (oldAlarm != SIG_ERR) { | |
47 | alarm(0); | |
48 | bzSignal(SIGALRM, oldAlarm); |