Initial revision
[libcurl.git] / include / curl / curl.beos-patch
blob67bab368eb74f1171495e42f5ac1912348033c68
1 Index: include/curl/curl.h
2 ===================================================================
3 RCS file: /cvs/curl/curl/include/curl/curl.h,v
4 retrieving revision 1.5
5 diff -u -r1.5 curl.h
6 --- curl.h      1999/11/23 08:22:42     1.5
7 +++ curl.h      1999/11/24 16:19:11
8 @@ -365,9 +365,13 @@
9    TIMECOND_LAST
10  } TimeCond;
12 +#ifdef __BEOS__
13 +#include <support/SupportDefs.h>
14 +#else
15  #ifndef __cplusplus        /* (rabe) */
16  typedef char bool;
17  #endif                     /* (rabe) */
18 +#endif
20  /**********************************************************************
21   *
22 Index: include/curl/setup.h
23 ===================================================================
24 RCS file: /cvs/curl/curl/include/curl/setup.h,v
25 retrieving revision 1.2
26 diff -u -r1.2 setup.h
27 --- setup.h     1999/10/17 11:18:34     1.2
28 +++ setup.h     1999/11/24 16:19:11
29 @@ -139,10 +139,17 @@
30  #define DOT_CHAR      "_"
32  #else
33 +#ifdef __BEOS__
34 +#define sclose(x) closesocket(x)
35 +#define sread(x,y,z) recv(x,y,z,0)
36 +#define swrite(x,y,z) send(x,y,z,0)
37 +#define myalarm(x) alarm(x)
38 +#else
39  #define sclose(x) close(x)
40  #define sread(x,y,z) read(x,y,z)
41  #define swrite(x,y,z) write(x,y,z)
42  #define myalarm(x) alarm(x)
43 +#endif
45  #define PATH_CHAR     ":"
46  #define DIR_CHAR      "/"