comparison src/fetch.c @ 54:125d79c9e586 noffle

[svn] * src/client.c, src/configfile.c, src/content.c, src/control.c, src/database.c, src/dynamicstring.c, src/fetch.c, src/fetchlist.c, src/group.c, src/itemlist.c, src/lock.c, src/log.c, src/noffle.c, src/online.c, src/outgoing.c, src/over.c, src/post.c, src/protocol.c, src/pseudo.c, src/request.c, src/server.c, src/util.c: Added portable.h #include. * src/client.h, src/database.h, src/fetch.c, src/group.h, src/lock.c, src/outgoing.c, src/over.c, src/over.h, src/pseudo.c, src/server.c, src/util.c, src/util.h: Added some #ifdefs to correctly include either time.h or sys/time.h or both, depending on which are found. * src/noffle.c: Changed the return-type of the signal-handlers bugReport() and logSignal() to RETSIGTYPE, which is either void or int, depending on the system you compile on (autoconf #defines the RETSIGTYPE).
author uh1763
date Tue, 09 May 2000 23:28:38 +0100
parents 2842f50feb55
children adf0af5152f7
comparison
equal deleted inserted replaced
53:9f3a4eccce32 54:125d79c9e586
1 /* 1 /*
2 fetch.c 2 fetch.c
3 3
4 $Id: fetch.c 49 2000-05-05 21:45:56Z uh1763 $ 4 $Id: fetch.c 60 2000-05-09 22:28:38Z uh1763 $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
10 10
11 #include <stdio.h> 11 #include <stdio.h>
12 #include "fetch.h" 12 #include "fetch.h"
13 #include <errno.h> 13 #include <errno.h>
14
15 #if TIME_WITH_SYS_TIME
16 #include <sys/time.h>
14 #include <time.h> 17 #include <time.h>
18 #else
19 #if HAVE_SYS_TIME_H
20 #include <sys/time.h>
21 #else
22 #include <time.h>
23 #endif
24 #endif
25
15 #include <signal.h> 26 #include <signal.h>
16 #include "client.h" 27 #include "client.h"
17 #include "configfile.h" 28 #include "configfile.h"
18 #include "content.h" 29 #include "content.h"
19 #include "dynamicstring.h" 30 #include "dynamicstring.h"
23 #include "log.h" 34 #include "log.h"
24 #include "outgoing.h" 35 #include "outgoing.h"
25 #include "protocol.h" 36 #include "protocol.h"
26 #include "pseudo.h" 37 #include "pseudo.h"
27 #include "util.h" 38 #include "util.h"
39 #include "portable.h"
28 40
29 struct Fetch 41 struct Fetch
30 { 42 {
31 Bool ready; 43 Bool ready;
32 Str serv; 44 Str serv;