aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-05 15:04:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-05 15:04:09 +0000
commit17e13acd10aacb3d33bfbb6f94ff727da4ca89b4 (patch)
treea37c55ead37f80d91b5b9a00da9cb56b02d92fe2 /lib
parent5564e9a32178d342b2418eaaa0ad90cf57e4d796 (diff)
BeOS-adjustments, as provided by Shard
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/setup.h b/lib/setup.h
index f4105d947..bc5314bae 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -23,9 +23,6 @@
* $Id$
***************************************************************************/
-/* MN 06/07/02 */
-/* #define HTTP_ONLY
-*/
#ifdef HTTP_ONLY
#define CURL_DISABLE_FTP
#define CURL_DISABLE_LDAP
@@ -60,10 +57,10 @@
#endif
-#ifndef __cplusplus /* (rabe) */
+#if !defined(__cplusplus) && !defined(__BEOS__)
typedef unsigned char bool;
#define typedef_bool
-#endif /* (rabe) */
+#endif
#ifdef NEED_REENTRANT
/* Solaris machines needs _REENTRANT set for a few function prototypes and
@@ -154,9 +151,16 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
#else
+#ifdef __BEOS__
+#define sclose(x) closesocket(x)
+#define sread(x,y,z) (ssize_t)recv(x,y,z,0)
+#define swrite(x,y,z) (ssize_t)send(x,y,z,0)
+#else
#define sclose(x) close(x)
#define sread(x,y,z) recv(x,y,z,0)
#define swrite(x,y,z) send(x,y,z,0)
+#endif
+
#define HAVE_ALARM
#endif