1 diff -ruN curl-7.60.0/acinclude.m4 curl-7.60.0.aros/acinclude.m4
2 --- curl-7.60.0/acinclude.m4 2018-05-07 10:18:02.000000000 +0100
3 +++ curl-7.60.0.aros/acinclude.m4 2018-06-10 21:07:08.478367466 +0100
5 #ifdef HAVE_SYS_SOCKET_H
6 #include <sys/socket.h>
9 +#include <proto/bsdsocket.h>
13 + struct Library *SocketBase;
17 @@ -1479,6 +1485,12 @@
18 #ifdef HAVE_SYS_SOCKET_H
19 #include <sys/socket.h>
22 +#include <proto/bsdsocket.h>
26 + struct Library *SocketBase;
30 @@ -2047,6 +2059,13 @@
33 LIBS="$tst_connect_save_LIBS"
34 + if test "$tst_connect_need_LIBS" = unknown; then
35 + dnl on AROS, connect is in bsdsocket.library
36 + AC_TRY_LINK([#include <proto/bsdsocket.h>],
37 + [void *SocketBase; connect(0,0,0);],
38 + [tst_connect_need_LIBS=""],
42 case X-"$tst_connect_need_LIBS" in
44 diff -ruN curl-7.60.0/configure curl-7.60.0.aros/configure
45 --- curl-7.60.0/configure 2018-05-14 13:20:30.000000000 +0100
46 +++ curl-7.60.0.aros/configure 2018-06-10 21:16:06.439408512 +0100
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 -runstatedir='${localstatedir}/run'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
63 @@ -1506,15 +1504,6 @@
64 | -silent | --silent | --silen | --sile | --sil)
67 - -runstatedir | --runstatedir | --runstatedi | --runstated \
68 - | --runstate | --runstat | --runsta | --runst | --runs \
69 - | --run | --ru | --r)
70 - ac_prev=runstatedir ;;
71 - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
72 - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
73 - | --run=* | --ru=* | --r=*)
74 - runstatedir=$ac_optarg ;;
76 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
78 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
80 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
81 datadir sysconfdir sharedstatedir localstatedir includedir \
82 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
83 - libdir localedir mandir runstatedir
84 + libdir localedir mandir
87 # Remove trailing slashes.
89 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
90 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
91 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
92 - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
93 --libdir=DIR object code libraries [EPREFIX/lib]
94 --includedir=DIR C header files [PREFIX/include]
95 --oldincludedir=DIR C header files for non-gcc [/usr/include]
97 We can't simply define LARGE_OFF_T to be 9223372036854775807,
98 since some C++ compilers masquerading as C compilers
99 incorrectly reject 9223372036854775807. */
100 -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
101 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
103 && LARGE_OFF_T % 2147483647 == 1)
105 @@ -7437,7 +7425,7 @@
106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
107 since some C++ compilers masquerading as C compilers
108 incorrectly reject 9223372036854775807. */
109 -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
110 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
112 && LARGE_OFF_T % 2147483647 == 1)
114 @@ -7460,7 +7448,7 @@
115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
116 since some C++ compilers masquerading as C compilers
117 incorrectly reject 9223372036854775807. */
118 -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
119 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
121 && LARGE_OFF_T % 2147483647 == 1)
123 @@ -7504,7 +7492,7 @@
124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
125 since some C++ compilers masquerading as C compilers
126 incorrectly reject 9223372036854775807. */
127 -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
128 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
130 && LARGE_OFF_T % 2147483647 == 1)
132 @@ -7527,7 +7515,7 @@
133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
134 since some C++ compilers masquerading as C compilers
135 incorrectly reject 9223372036854775807. */
136 -#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
137 +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
139 && LARGE_OFF_T % 2147483647 == 1)
141 @@ -19676,6 +19664,33 @@
145 +if test "$HAVE_GETHOSTBYNAME" != "1"
147 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in bsdsocket.library" >&5
148 +$as_echo_n "checking for gethostbyname in bsdsocket.library... " >&6; }
149 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
150 +/* end confdefs.h. */
151 +#include <proto/bsdsocket.h>
154 +void *SocketBase; gethostbyname("");
159 +if ac_fn_c_try_link "$LINENO"; then :
160 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
161 +$as_echo "yes" >&6; }
162 + HAVE_GETHOSTBYNAME="1"
164 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
165 +$as_echo "no" >&6; }
168 +rm -f core conftest.err conftest.$ac_objext \
169 + conftest$ac_exeext conftest.$ac_ext
174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
175 @@ -20409,6 +20424,23 @@
178 LIBS="$tst_connect_save_LIBS"
179 + if test "$tst_connect_need_LIBS" = unknown; then
180 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
181 +/* end confdefs.h. */
182 +#include <proto/bsdsocket.h>
185 +void *SocketBase; connect(0,0,0);
190 +if ac_fn_c_try_link "$LINENO"; then :
191 + tst_connect_need_LIBS=""
193 +rm -f core conftest.err conftest.$ac_objext \
194 + conftest$ac_exeext conftest.$ac_ext
197 case X-"$tst_connect_need_LIBS" in
199 @@ -22674,10 +22706,23 @@
200 LIBS="-lcrypto $LIBS"
204 - LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
205 - CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
206 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
207 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
208 +/* end confdefs.h. */
209 +#include <openssl/hmac.h>
218 +if ac_fn_c_try_link "$LINENO"; then :
221 + LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
222 + CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
223 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
224 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
225 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
226 $as_echo_n "(cached) " >&6
227 @@ -22712,23 +22757,23 @@
228 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
229 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
232 - LIBS="-lcrypto $LIBS"
234 + LIBS="-lcrypto $LIBS"
238 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
239 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
240 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
242 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
244 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
245 /* end confdefs.h. */
247 - #include <openssl/err.h>
248 + #include <openssl/err.h>
258 @@ -22736,27 +22781,27 @@
260 if ac_fn_c_try_link "$LINENO"; then :
262 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
263 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
264 $as_echo "yes" >&6; }
270 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
271 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
274 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
275 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
276 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
277 - LIBS="$LIBS -lpthread"
278 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
279 + LIBS="$LIBS -lpthread"
280 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
281 /* end confdefs.h. */
283 - #include <openssl/err.h>
284 + #include <openssl/err.h>
294 @@ -22764,17 +22809,17 @@
296 if ac_fn_c_try_link "$LINENO"; then :
298 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
299 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
300 $as_echo "yes" >&6; }
306 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
307 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
309 - LDFLAGS="$CLEANLDFLAGS"
310 - CPPFLAGS="$CLEANCPPFLAGS"
312 + LDFLAGS="$CLEANLDFLAGS"
313 + CPPFLAGS="$CLEANCPPFLAGS"
318 @@ -22791,6 +22836,10 @@
322 +rm -f core conftest.err conftest.$ac_objext \
323 + conftest$ac_exeext conftest.$ac_ext
328 if test X"$HAVECRYPTO" = X"yes"; then
329 @@ -22893,8 +22942,38 @@
330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
331 $as_echo "yes" >&6; }
336 + if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
337 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with SocketBase available" >&5
338 +$as_echo_n "checking for ssl with SocketBase available... " >&6; }
341 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
342 +/* end confdefs.h. */
343 +#include <openssl/ssl.h>
352 +if ac_fn_c_try_link "$LINENO"; then :
353 + ac_cv_lib_ssl_SSL_connect="yes"
354 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
355 +$as_echo "yes" >&6; }
358 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
359 +$as_echo "no" >&6; }
361 +rm -f core conftest.err conftest.$ac_objext \
362 + conftest$ac_exeext conftest.$ac_ext
365 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
367 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
368 openssl/pem.h openssl/ssl.h openssl/err.h
369 @@ -30031,6 +30110,12 @@
370 #ifdef HAVE_SYS_SOCKET_H
371 #include <sys/socket.h>
374 +#include <proto/bsdsocket.h>
378 + struct Library *SocketBase;
382 @@ -30222,6 +30307,12 @@
383 #ifdef HAVE_SYS_SOCKET_H
384 #include <sys/socket.h>
387 +#include <proto/bsdsocket.h>
391 + struct Library *SocketBase;
395 diff -ruN curl-7.60.0/configure.ac curl-7.60.0.aros/configure.ac
396 --- curl-7.60.0/configure.ac 2018-05-14 12:01:43.000000000 +0100
397 +++ curl-7.60.0.aros/configure.ac 2018-06-10 21:14:46.240402393 +0100
402 +if test "$HAVE_GETHOSTBYNAME" != "1"
404 + dnl AROS gets to gethostbyname via bsdsocket.library
405 + AC_MSG_CHECKING([for gethostbyname in bsdsocket.library])
406 + AC_TRY_LINK([#include <proto/bsdsocket.h>],
407 + [void *SocketBase; gethostbyname("");],
409 + AC_MSG_RESULT([yes])
410 + HAVE_GETHOSTBYNAME="1"],
416 dnl **********************************************************************
417 dnl Check for built-in manual
418 @@ -1645,56 +1658,60 @@
419 AC_CHECK_LIB(crypto, HMAC_Update,[
421 LIBS="-lcrypto $LIBS"
423 - LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
424 - CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
425 - AC_CHECK_LIB(crypto, HMAC_Init_ex,[
427 - LIBS="-lcrypto $LIBS"], [
429 - dnl still no, but what about with -ldl?
430 - AC_MSG_CHECKING([OpenSSL linking with -ldl])
434 - #include <openssl/err.h>
445 - dnl ok, so what about bouth -ldl and -lpthread?
447 - AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
448 - LIBS="$LIBS -lpthread"
451 - #include <openssl/err.h>
462 - LDFLAGS="$CLEANLDFLAGS"
463 - CPPFLAGS="$CLEANCPPFLAGS"
465 + ],[AC_TRY_LINK([#include <openssl/hmac.h>
467 + [HMAC_Update(0,0,0);],
468 + [HAVECRYPTO="yes"],
469 + [LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
470 + CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
471 + AC_CHECK_LIB(crypto, HMAC_Init_ex,[
473 + LIBS="-lcrypto $LIBS"], [
475 + dnl still no, but what about with -ldl?
476 + AC_MSG_CHECKING([OpenSSL linking with -ldl])
480 + #include <openssl/err.h>
491 + dnl ok, so what about bouth -ldl and -lpthread?
493 + AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
494 + LIBS="$LIBS -lpthread"
497 + #include <openssl/err.h>
508 + LDFLAGS="$CLEANLDFLAGS"
509 + CPPFLAGS="$CLEANCPPFLAGS"
524 if test X"$HAVECRYPTO" = X"yes"; then
525 dnl This is only reasonable to do if crypto actually is there: check for
526 @@ -1715,8 +1732,23 @@
532 + if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
533 + dnl on AROS, libssl needs SocketBase
534 + AC_MSG_CHECKING(for ssl with SocketBase available)
537 + AC_TRY_LINK([#include <openssl/ssl.h>
540 + [ac_cv_lib_ssl_SSL_connect="yes"
541 + AC_MSG_RESULT([yes])],
543 + AC_MSG_RESULT([no])])
547 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
549 dnl Have the libraries--check for OpenSSL headers
550 AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \
551 diff -ruN curl-7.60.0/lib/aros.c curl-7.60.0.aros/lib/aros.c
552 --- curl-7.60.0/lib/aros.c 1970-01-01 01:00:00.000000000 +0100
553 +++ curl-7.60.0.aros/lib/aros.c 2018-06-10 21:07:08.478367466 +0100
555 +/***************************************************************************
557 + * Project ___| | | | _ \| |
558 + * / __| | | | |_) | |
559 + * | (__| |_| | _ <| |___
560 + * \___|\___/|_| \_\_____|
562 + * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
564 + * This software is licensed as described in the file COPYING, which
565 + * you should have received as part of this distribution. The terms
566 + * are also available at http://curl.haxx.se/docs/copyright.html.
568 + * You may opt to use, copy, modify, merge, publish, distribute and/or sell
569 + * copies of the Software, and permit persons to whom the Software is
570 + * furnished to do so, under the terms of the COPYING file.
572 + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
573 + * KIND, either express or implied.
576 + ***************************************************************************/
578 +#ifdef __AROS__ /* AROS */
581 +#include <aros/symbolsets.h>
582 +#include <exec/libraries.h>
583 +#include <proto/exec.h>
584 +#include <proto/dos.h>
585 +#include <proto/bsdsocket.h>
586 +#include <bsdsocket/socketbasetags.h>
588 +struct Library * __attribute__((weak)) SocketBase = NULL;
593 + CloseLibrary(SocketBase);
601 + SocketBase = OpenLibrary("bsdsocket.library", 4);
604 + Printf("No TCP/IP Stack running!", "");
609 + SBTM_SETVAL(SBTC_ERRNOPTR(sizeof(errno))), (IPTR) &errno,
610 + SBTM_SETVAL(SBTC_LOGTAGPTR), (IPTR) "cURL",
613 + Printf("SocketBaseTags ERROR", "");
620 +ADD2INIT(aros_init, -50)
621 +ADD2EXIT(aros_cleanup, -50)
623 +#endif /* __AROS__ */
624 diff -ruN curl-7.60.0/lib/connect.c curl-7.60.0.aros/lib/connect.c
625 --- curl-7.60.0/lib/connect.c 2018-05-07 09:20:04.000000000 +0100
626 +++ curl-7.60.0.aros/lib/connect.c 2018-06-10 21:07:08.478367466 +0100
632 +#include <proto/bsdsocket.h>
638 diff -ruN curl-7.60.0/lib/curl_gethostname.c curl-7.60.0.aros/lib/curl_gethostname.c
639 --- curl-7.60.0/lib/curl_gethostname.c 2017-12-02 23:33:20.000000000 +0000
640 +++ curl-7.60.0.aros/lib/curl_gethostname.c 2018-06-10 21:07:08.478367466 +0100
642 * For libcurl static library release builds no overriding takes place.
646 +#include <proto/bsdsocket.h>
649 int Curl_gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen)
651 #ifndef HAVE_GETHOSTNAME
652 diff -ruN curl-7.60.0/lib/curl_setup.h curl-7.60.0.aros/lib/curl_setup.h
653 --- curl-7.60.0/lib/curl_setup.h 2018-05-07 10:18:02.000000000 +0100
654 +++ curl-7.60.0.aros/lib/curl_setup.h 2018-06-10 21:07:08.478367466 +0100
662 +# undef HAVE_SIGACTION
667 /* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
668 extern char *strtok_r(char *s, const char *delim, char **last);
669 diff -ruN curl-7.60.0/lib/file.c curl-7.60.0.aros/lib/file.c
670 --- curl-7.60.0/lib/file.c 2018-05-07 09:20:04.000000000 +0100
671 +++ curl-7.60.0.aros/lib/file.c 2018-06-10 21:07:08.478367466 +0100
674 struct FILEPROTO *file = data->req.protop;
676 -#ifdef DOS_FILESYSTEM
677 +#if defined(DOS_FILESYSTEM) || defined(__AROS__)
683 fd = open_readonly(actual_path, O_RDONLY|O_BINARY);
684 file->path = actual_path;
685 +#elif defined __AROS__
686 + /* On AROS paths can start with volume name, skip slash in this case */
687 + actual_path = real_path;
688 + if(actual_path[0] == '/' && strchr(actual_path, ':'))
691 + fd = open(actual_path, O_RDONLY);
692 + file->path = actual_path;
694 if(memchr(real_path, 0, real_path_len)) {
695 /* binary zeroes indicate foul play */
696 diff -ruN curl-7.60.0/lib/ftp.c curl-7.60.0.aros/lib/ftp.c
697 --- curl-7.60.0/lib/ftp.c 2018-05-14 12:30:44.000000000 +0100
698 +++ curl-7.60.0.aros/lib/ftp.c 2018-06-10 21:07:08.478367466 +0100
700 #define in_addr_t unsigned long
704 +#include <proto/bsdsocket.h>
707 #include <curl/curl.h>
710 diff -ruN curl-7.60.0/lib/getinfo.c curl-7.60.0.aros/lib/getinfo.c
711 --- curl-7.60.0/lib/getinfo.c 2018-05-07 09:20:04.000000000 +0100
712 +++ curl-7.60.0.aros/lib/getinfo.c 2018-06-10 21:07:08.478367466 +0100
714 #include "connect.h" /* Curl_getconnectinfo() */
715 #include "progress.h"
718 +#include <proto/bsdsocket.h>
721 /* The last #include files should be: */
722 #include "curl_memory.h"
723 #include "memdebug.h"
724 diff -ruN curl-7.60.0/lib/hostip4.c curl-7.60.0.aros/lib/hostip4.c
725 --- curl-7.60.0/lib/hostip4.c 2018-05-07 09:20:04.000000000 +0100
726 +++ curl-7.60.0.aros/lib/hostip4.c 2018-06-10 21:07:08.478367466 +0100
732 +#include <proto/bsdsocket.h>
738 diff -ruN curl-7.60.0/lib/http.c curl-7.60.0.aros/lib/http.c
739 --- curl-7.60.0/lib/http.c 2018-05-14 12:30:44.000000000 +0100
740 +++ curl-7.60.0.aros/lib/http.c 2018-06-10 21:07:08.478367466 +0100
742 #include <sys/param.h>
746 +#include <proto/bsdsocket.h>
750 #include <curl/curl.h>
751 #include "transfer.h"
752 diff -ruN curl-7.60.0/lib/if2ip.c curl-7.60.0.aros/lib/if2ip.c
753 --- curl-7.60.0/lib/if2ip.c 2018-05-07 09:20:04.000000000 +0100
754 +++ curl-7.60.0.aros/lib/if2ip.c 2018-06-10 21:07:08.478367466 +0100
760 +#include <proto/bsdsocket.h>
763 #include "inet_ntop.h"
766 diff -ruN curl-7.60.0/lib/inet_ntop.c curl-7.60.0.aros/lib/inet_ntop.c
767 --- curl-7.60.0/lib/inet_ntop.c 2018-05-14 10:01:32.000000000 +0100
768 +++ curl-7.60.0.aros/lib/inet_ntop.c 2018-06-10 21:07:08.478367466 +0100
770 #include <arpa/inet.h>
774 +#include <proto/bsdsocket.h>
777 #include "inet_ntop.h"
778 #include "curl_printf.h"
780 diff -ruN curl-7.60.0/lib/Makefile.in curl-7.60.0.aros/lib/Makefile.in
781 --- curl-7.60.0/lib/Makefile.in 2018-05-14 13:20:31.000000000 +0100
782 +++ curl-7.60.0.aros/lib/Makefile.in 2018-06-10 21:07:08.478367466 +0100
784 libcurl_la-system_win32.lo libcurl_la-mime.lo \
785 libcurl_la-sha256.lo libcurl_la-setopt.lo \
786 libcurl_la-curl_path.lo libcurl_la-curl_ctype.lo \
787 - libcurl_la-curl_range.lo
788 + libcurl_la-curl_range.lo libcurl_la-aros.lo
789 am__dirstamp = $(am__leading_dot)dirstamp
790 am__objects_2 = vauth/libcurl_la-vauth.lo \
791 vauth/libcurl_la-cleartext.lo vauth/libcurl_la-cram.lo \
793 http_ntlm.c curl_ntlm_wb.c curl_ntlm_core.c curl_sasl.c rand.c \
794 curl_multibyte.c hostcheck.c conncache.c pipeline.c dotdot.c \
795 x509asn1.c http2.c smb.c curl_endian.c curl_des.c system_win32.c \
796 - mime.c sha256.c setopt.c curl_path.c curl_ctype.c curl_range.c
797 + mime.c sha256.c setopt.c curl_path.c curl_ctype.c curl_range.c aros.c
799 LIB_HFILES = arpa_telnet.h netrc.h file.h timeval.h hostip.h progress.h \
800 formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h if2ip.h \
804 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-amigaos.Plo@am__quote@
805 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-aros.Plo@am__quote@
806 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-asyn-ares.Plo@am__quote@
807 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-asyn-thread.Plo@am__quote@
808 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-base64.Plo@am__quote@
809 @@ -1079,6 +1080,7 @@
810 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-wildcard.Plo@am__quote@
811 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurl_la-x509asn1.Plo@am__quote@
812 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-amigaos.Plo@am__quote@
813 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-aros.Plo@am__quote@
814 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-asyn-ares.Plo@am__quote@
815 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-asyn-thread.Plo@am__quote@
816 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcurlu_la-base64.Plo@am__quote@
817 @@ -2101,6 +2103,13 @@
818 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
819 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcurl_la_CPPFLAGS) $(CPPFLAGS) $(libcurl_la_CFLAGS) $(CFLAGS) -c -o vauth/libcurl_la-spnego_sspi.lo `test -f 'vauth/spnego_sspi.c' || echo '$(srcdir)/'`vauth/spnego_sspi.c
821 +libcurl_la-aros.lo: aros.c
822 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcurl_la_CPPFLAGS) $(CPPFLAGS) $(libcurl_la_CFLAGS) $(CFLAGS) -MT libcurl_la-aros.lo -MD -MP -MF $(DEPDIR)/libcurl_la-aros.Tpo -c -o libcurl_la-aros.lo `test -f 'aros.c' || echo '$(srcdir)/'`aros.c
823 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcurl_la-aros.Tpo $(DEPDIR)/libcurl_la-aros.Plo
824 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='aros.c' object='libcurl_la-aros.lo' libtool=yes @AMDEPBACKSLASH@
825 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
826 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcurl_la_CPPFLAGS) $(CPPFLAGS) $(libcurl_la_CFLAGS) $(CFLAGS) -c -o libcurl_la-aros.lo `test -f 'aros.c' || echo '$(srcdir)/'`aros.c
828 vtls/libcurl_la-openssl.lo: vtls/openssl.c
829 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcurl_la_CPPFLAGS) $(CPPFLAGS) $(libcurl_la_CFLAGS) $(CFLAGS) -MT vtls/libcurl_la-openssl.lo -MD -MP -MF vtls/$(DEPDIR)/libcurl_la-openssl.Tpo -c -o vtls/libcurl_la-openssl.lo `test -f 'vtls/openssl.c' || echo '$(srcdir)/'`vtls/openssl.c
830 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) vtls/$(DEPDIR)/libcurl_la-openssl.Tpo vtls/$(DEPDIR)/libcurl_la-openssl.Plo
831 diff -ruN curl-7.60.0/lib/Makefile.inc curl-7.60.0.aros/lib/Makefile.inc
832 --- curl-7.60.0/lib/Makefile.inc 2018-05-07 10:18:02.000000000 +0100
833 +++ curl-7.60.0.aros/lib/Makefile.inc 2018-06-10 21:07:08.478367466 +0100
835 http_ntlm.c curl_ntlm_wb.c curl_ntlm_core.c curl_sasl.c rand.c \
836 curl_multibyte.c hostcheck.c conncache.c pipeline.c dotdot.c \
837 x509asn1.c http2.c smb.c curl_endian.c curl_des.c system_win32.c \
838 - mime.c sha256.c setopt.c curl_path.c curl_ctype.c curl_range.c
839 + mime.c sha256.c setopt.c curl_path.c curl_ctype.c curl_range.c aros.c
841 LIB_HFILES = arpa_telnet.h netrc.h file.h timeval.h hostip.h progress.h \
842 formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h if2ip.h \
843 diff -ruN curl-7.60.0/lib/memdebug.c curl-7.60.0.aros/lib/memdebug.c
844 --- curl-7.60.0/lib/memdebug.c 2018-05-07 09:20:04.000000000 +0100
845 +++ curl-7.60.0.aros/lib/memdebug.c 2018-06-10 21:07:08.478367466 +0100
848 #include <curl/curl.h>
851 +#include <proto/bsdsocket.h>
856 #define MEMDEBUG_NODEFINES /* don't redefine the standard functions */
857 diff -ruN curl-7.60.0/lib/multi.c curl-7.60.0.aros/lib/multi.c
858 --- curl-7.60.0/lib/multi.c 2018-05-07 10:18:03.000000000 +0100
859 +++ curl-7.60.0.aros/lib/multi.c 2018-06-10 21:07:08.478367466 +0100
862 #include "curl_setup.h"
865 +#include <proto/bsdsocket.h>
868 #include <curl/curl.h>
871 diff -ruN curl-7.60.0/lib/nonblock.c curl-7.60.0.aros/lib/nonblock.c
872 --- curl-7.60.0/lib/nonblock.c 2018-05-07 09:20:04.000000000 +0100
873 +++ curl-7.60.0.aros/lib/nonblock.c 2018-06-10 21:07:08.478367466 +0100
879 +#include <proto/bsdsocket.h>
882 #include "nonblock.h"
885 diff -ruN curl-7.60.0/lib/select.c curl-7.60.0.aros/lib/select.c
886 --- curl-7.60.0/lib/select.c 2018-05-07 09:20:04.000000000 +0100
887 +++ curl-7.60.0.aros/lib/select.c 2018-06-10 21:07:08.478367466 +0100
893 +#include <proto/bsdsocket.h>
897 #include <dos.h> /* delay() */
904 diff -ruN curl-7.60.0/lib/sendf.c curl-7.60.0.aros/lib/sendf.c
905 --- curl-7.60.0/lib/sendf.c 2018-05-07 09:20:04.000000000 +0100
906 +++ curl-7.60.0.aros/lib/sendf.c 2018-06-10 21:07:08.478367466 +0100
908 #include <linux/tcp.h>
912 +#include <proto/bsdsocket.h>
915 #include <curl/curl.h>
918 diff -ruN curl-7.60.0/lib/telnet.c curl-7.60.0.aros/lib/telnet.c
919 --- curl-7.60.0/lib/telnet.c 2018-05-14 10:01:32.000000000 +0100
920 +++ curl-7.60.0.aros/lib/telnet.c 2018-06-10 21:07:08.478367466 +0100
922 #include <sys/param.h>
926 +#include <proto/bsdsocket.h>
930 #include <curl/curl.h>
931 #include "transfer.h"
932 diff -ruN curl-7.60.0/lib/tftp.c curl-7.60.0.aros/lib/tftp.c
933 --- curl-7.60.0/lib/tftp.c 2018-05-07 10:18:03.000000000 +0100
934 +++ curl-7.60.0.aros/lib/tftp.c 2018-06-10 21:07:08.478367466 +0100
936 #include <sys/param.h>
940 +#include <proto/bsdsocket.h>
944 #include <curl/curl.h>
945 #include "transfer.h"
946 diff -ruN curl-7.60.0/lib/transfer.c curl-7.60.0.aros/lib/transfer.c
947 --- curl-7.60.0/lib/transfer.c 2018-05-14 12:01:43.000000000 +0100
948 +++ curl-7.60.0.aros/lib/transfer.c 2018-06-10 21:07:08.478367466 +0100
950 #error "We can't compile without socket() support!"
954 +#include <proto/bsdsocket.h>
958 #include <curl/curl.h>
960 diff -ruN curl-7.60.0/lib/url.c curl-7.60.0.aros/lib/url.c
961 --- curl-7.60.0/lib/url.c 2018-05-14 12:30:44.000000000 +0100
962 +++ curl-7.60.0.aros/lib/url.c 2018-06-10 21:07:08.478367466 +0100
968 +#include <proto/bsdsocket.h>
972 #error "We can't compile without socket() support!"
974 diff -ruN curl-7.60.0/lib/vtls/vtls.c curl-7.60.0.aros/lib/vtls/vtls.c
975 --- curl-7.60.0/lib/vtls/vtls.c 2018-05-14 12:01:43.000000000 +0100
976 +++ curl-7.60.0.aros/lib/vtls/vtls.c 2018-06-10 21:07:08.478367466 +0100
981 +#if defined(__AROS__)
986 #include "vtls.h" /* generic SSL protos etc */
989 diff -ruN curl-7.60.0/src/tool_main.c curl-7.60.0.aros/src/tool_main.c
990 --- curl-7.60.0/src/tool_main.c 2018-05-07 09:20:04.000000000 +0100
991 +++ curl-7.60.0.aros/src/tool_main.c 2018-06-10 21:07:08.478367466 +0100
993 #include <plarenas.h>
997 +#include <proto/bsdsocket.h>
1000 #define ENABLE_CURLX_PRINTF
1001 /* use our own printf() functions */
1003 diff -ruN curl-7.60.0/src/tool_sleep.c curl-7.60.0.aros/src/tool_sleep.c
1004 --- curl-7.60.0/src/tool_sleep.c 2018-05-07 09:20:04.000000000 +0100
1005 +++ curl-7.60.0.aros/src/tool_sleep.c 2018-06-10 21:07:08.478367466 +0100
1011 +#include <proto/bsdsocket.h>
1014 #include "tool_sleep.h"
1016 #include "memdebug.h" /* keep this as LAST include */