summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/libcurl/ppc-amigaos/lib.curl_setup.h.p
blob: 7e47a50f3bf4fcc7b8fcf86f96389262fbb9944a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- lib/curl_setup.h.old	2012-10-19 21:58:12.000000000 +0100
+++ lib/curl_setup.h	2012-10-19 21:59:17.000000000 +0100
@@ -323,11 +323,15 @@
 
 #ifdef __AMIGA__
 #  ifndef __ixemul__
-#    include <exec/types.h>
-#    include <exec/execbase.h>
-#    include <proto/exec.h>
-#    include <proto/dos.h>
-#    define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
+#    ifdef __amigaos4__
+#      include <unistd.h>
+#    else
+#      include <exec/types.h>
+#      include <exec/execbase.h>
+#      include <proto/exec.h>
+#      include <proto/dos.h>
+#      define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
+#    endif
 #  endif
 #endif