aboutsummaryrefslogtreecommitdiff
path: root/lib/amigaos.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-07-13 18:06:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-07-13 18:06:40 +0000
commit16bbd13af7244cc0967d9f12327f63ffcaeac4bd (patch)
tree345f4e74a520be8b1ef6cae6bd9a171938198b79 /lib/amigaos.h
parentee0666c8df0022a13fd478fe4a916f647a6338c5 (diff)
Diego Casorran patches to make (lib)curl build fine on Amiga again
Diffstat (limited to 'lib/amigaos.h')
-rw-r--r--lib/amigaos.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/amigaos.h b/lib/amigaos.h
index 0196eece7..a859ef77c 100644
--- a/lib/amigaos.h
+++ b/lib/amigaos.h
@@ -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();