From 5a91746b80fd41b9915574d8514f1d40e9cfd1b6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 1 May 2009 12:39:40 +0000 Subject: David McCreedy's "TPF-platform specific changes to various files" patch --- src/main.c | 2 ++ src/setup.h | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 1efa3fe00..77de03b17 100644 --- a/src/main.c +++ b/src/main.c @@ -257,6 +257,8 @@ typedef enum { # if defined(_LP64) || defined(_LARGE_FILES) # define SIZEOF_OFF_T 8 # endif +# elif defined(TPF) +# define SIZEOF_OFF_T 8 # endif # ifndef SIZEOF_OFF_T # define SIZEOF_OFF_T 4 diff --git a/src/setup.h b/src/setup.h index b56407c64..1c74eb6d3 100644 --- a/src/setup.h +++ b/src/setup.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -64,10 +64,6 @@ #ifdef TPF #include "config-tpf.h" -/* change which select is used for the curl command line tool */ -#define select(a,b,c,d,e) tpf_select_bsd(a,b,c,d,e) -/* and turn off the progress meter */ -#define CONF_DEFAULT (0|CONF_NOPROGRESS) #endif #endif /* HAVE_CONFIG_H */ @@ -128,6 +124,13 @@ # endif #endif +#ifdef TPF +# include + /* change which select is used for the curl command line tool */ +# define select(a,b,c,d,e) tpf_select_bsd(a,b,c,d,e) + /* and turn off the progress meter */ +# define CONF_DEFAULT (0|CONF_NOPROGRESS) +#endif #include -- cgit v1.2.3