projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6cdb68
)
added signal in case sigaction is missing
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 1 Nov 2000 08:19:10 +0000
(08:19 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 1 Nov 2000 08:19:10 +0000
(08:19 +0000)
configure.in
patch
|
blob
|
history
lib/url.c
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
301a159
..
ca270af
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-529,7
+529,8
@@
AC_CHECK_FUNCS( socket \
perror \
closesocket \
setvbuf \
- sigaction
+ sigaction \
+ signal
)
dnl removed 'getpass' check on October 26, 2000
@@
-553,8
+554,6
@@
dnl $PATH:/usr/bin/:/usr/local/bin )
dnl AC_SUBST(RANLIB)
AC_OUTPUT( Makefile \
- curl.spec \
- curl-ssl.spec \
docs/Makefile \
include/Makefile \
include/curl/Makefile \
diff --git
a/lib/url.c
b/lib/url.c
index
76b8f4e
..
492192e
100644
(file)
--- a/
lib/url.c
+++ b/
lib/url.c
@@
-726,6
+726,12
@@
CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
sigact.sa_handler = alarmfunc;
sigact.sa_flags &= ~SA_RESTART;
sigaction(SIGALRM, &sigact, NULL);
+#else
+ /* no sigaction(), revert to the much lamer signal() */
+#ifdef HAVE_SIGNAL
+ signal(SIGALRM, alarmfunc);
+#endif
+
#endif
/* Parse <url> */