Commit 5a91746b authored by Yang Tse's avatar Yang Tse
Browse files

David McCreedy's "TPF-platform specific changes to various files" patch

parent fdc091a8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ To be addressed in 7.19.5 (planned release: May 2009)
230 - [PATCH] http.c fix to Curl_proxyCONNECT for non-ASCII platforms.

231 - [PATCH] TPF-platform specific changes to various files
      - committed with minor changes
      - awaiting feedback

232 - [PATCH] transfer.c fixes for CURL_DO_LINEEND_CONV and non-ASCII 
      platform HTTP requests
+5 −0
Original line number Diff line number Diff line
@@ -196,6 +196,11 @@
#    endif
#  endif

#elif defined(TPF)
#  define CARES_SIZEOF_LONG           8
#  define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
#  define CARES_SIZEOF_ARES_SOCKLEN_T -1

/* ===================================== */
/*    KEEP MSVC THE PENULTIMATE ENTRY    */
/* ===================================== */
+12 −0
Original line number Diff line number Diff line
@@ -478,6 +478,18 @@
#  define CURL_TYPEOF_CURL_SOCKLEN_T FIXME
#  define CURL_SIZEOF_CURL_SOCKLEN_T -1

#elif defined(TPF)
#  define CURL_SIZEOF_LONG           8
#  define CURL_TYPEOF_CURL_OFF_T     long
#  define CURL_FORMAT_CURL_OFF_T     "ld"
#  define CURL_FORMAT_CURL_OFF_TU    "lu"
#  define CURL_FORMAT_OFF_T          "%ld"
#  define CURL_SIZEOF_CURL_OFF_T     8
#  define CURL_SUFFIX_CURL_OFF_T     L
#  define CURL_SUFFIX_CURL_OFF_TU    UL
#  define CURL_TYPEOF_CURL_SOCKLEN_T FIXME
#  define CURL_SIZEOF_CURL_SOCKLEN_T -1

/* ===================================== */
/*    KEEP MSVC THE PENULTIMATE ENTRY    */
/* ===================================== */
+3 −0
Original line number Diff line number Diff line
@@ -601,6 +601,9 @@
/* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *)

/* The size of an `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8

/* The size of a `size_t', as computed by sizeof. */
#define SIZEOF_SIZE_T 8

+3 −3
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@
#endif

#ifdef TPF
#include "config-tpf.h" /* hand-modified TPF config.h */
/* change which select is used for libcurl */
#define select(a,b,c,d,e) tpf_select_libcurl(a,b,c,d,e)
#  include "config-tpf.h"
#endif

#endif /* HAVE_CONFIG_H */
@@ -228,6 +226,8 @@
#  include <sys/socket.h> /* for select and ioctl*/
#  include <netdb.h>      /* for in_addr_t definition */
#  include <tpf/sysapi.h> /* for tpf_process_signals */
   /* change which select is used for libcurl */
#  define select(a,b,c,d,e) tpf_select_libcurl(a,b,c,d,e)
#endif

#include <stdio.h>
Loading