summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/amigaos.h
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl/amigaos.h')
-rw-r--r--Utilities/cmcurl/amigaos.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Utilities/cmcurl/amigaos.h b/Utilities/cmcurl/amigaos.h
index 0196eec..e5786d4 100644
--- a/Utilities/cmcurl/amigaos.h
+++ b/Utilities/cmcurl/amigaos.h
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -32,13 +32,19 @@
#include <proto/exec.h>
#include <proto/dos.h>
-#include <bsdsocket.h>
+#include <sys/socket.h>
#include "config-amigaos.h"
-#define select(args...) WaitSelect( args, NULL)
-#define inet_ntoa(x) Inet_NtoA( x ## .s_addr)
-#define ioctl(a,b,c,d) IoctlSocket( (LONG)a, (ULONG)b, (char*)c)
+#ifndef select
+# define select(args...) WaitSelect( args, NULL)
+#endif
+#ifndef inet_ntoa
+# define inet_ntoa(x) Inet_NtoA( x ## .s_addr)
+#endif
+#ifndef ioctl
+# define ioctl(a,b,c,d) IoctlSocket( (LONG)a, (ULONG)b, (char*)c)
+#endif
#define _AMIGASF 1
extern void amiga_cleanup();