diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-12-20 21:43:19 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-12-20 21:43:19 +0000 |
commit | c256843c8c34a9d7138e453c5e1915b4942487dd (patch) | |
tree | 9263bdf0901556b76eff99f9df0afea0fa311cdc /sdk | |
parent | f20bfb5f98b51bfbf9ab6919961541c46dcca19f (diff) | |
download | toolchains-c256843c8c34a9d7138e453c5e1915b4942487dd.tar.gz toolchains-c256843c8c34a9d7138e453c5e1915b4942487dd.tar.bz2 |
Patch libcurl enough to make it compile for m68k-amigaos/clib2
NB: this does not result in a working curl binary, so libcurl probably doesn't work either.
Diffstat (limited to 'sdk')
4 files changed, 50 insertions, 0 deletions
diff --git a/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.c.p b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.c.p new file mode 100644 index 0000000..5b6c913 --- /dev/null +++ b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.c.p @@ -0,0 +1,11 @@ +--- lib/amigaos.c 2014-06-11 18:52:29.000000000 +0100 ++++ lib/amigaos.c 2014-12-20 21:34:06.686013103 +0000 +@@ -22,7 +22,7 @@ + + #include "curl_setup.h" + +-#if defined(__AMIGA__) && !defined(__ixemul__) ++#if 0 + + #include <amitcp/socketbasetags.h> + diff --git a/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.h.p b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.h.p new file mode 100644 index 0000000..de22d82 --- /dev/null +++ b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.amigaos.h.p @@ -0,0 +1,11 @@ +--- lib/amigaos.h 2014-06-11 18:52:29.000000000 +0100 ++++ lib/amigaos.h 2014-12-20 21:34:20.390013061 +0000 +@@ -23,7 +23,7 @@ + ***************************************************************************/ + #include "curl_setup.h" + +-#if defined(__AMIGA__) && !defined(__ixemul__) ++#if 0 + + bool Curl_amiga_init(); + void Curl_amiga_cleanup(); diff --git a/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.curl_setup.h.p b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.curl_setup.h.p new file mode 100644 index 0000000..c9b9af3 --- /dev/null +++ b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/lib.curl_setup.h.p @@ -0,0 +1,10 @@ +--- lib/curl_setup.h 2014-08-25 22:45:11.000000000 +0100 ++++ lib/curl_setup.h 2014-12-20 21:35:26.494012868 +0000 +@@ -311,7 +311,6 @@ + # 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 + diff --git a/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/src.tool_operate.c.p b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/src.tool_operate.c.p new file mode 100644 index 0000000..3f521af --- /dev/null +++ b/sdk/recipes/patches/libcurl/m68k-unknown-amigaos/src.tool_operate.c.p @@ -0,0 +1,18 @@ +--- src/tool_operate.c.old 2012-10-19 21:42:57.000000000 +0100 ++++ src/tool_operate.c 2012-10-19 21:43:27.000000000 +0100 +@@ -1731,15 +1731,6 @@ + } + } + +-#ifdef __AMIGA__ +- if(!res && outs.s_isreg && outs.filename) { +- /* Set the url (up to 80 chars) as comment for the file */ +- if(strlen(url) > 78) +- url[79] = '\0'; +- SetComment(outs.filename, url); +- } +-#endif +- + #ifdef HAVE_UTIME + /* File time can only be set _after_ the file has been closed */ + if(!res && config->remote_time && outs.s_isreg && outs.filename) { |