diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-01 12:39:40 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-01 12:39:40 +0000 |
commit | 5a91746b80fd41b9915574d8514f1d40e9cfd1b6 (patch) | |
tree | 8142242b120e88a93f697f0cc8cd31b466730427 /lib | |
parent | fdc091a8573d0c3aa260738384e5d9dbb31a38df (diff) |
David McCreedy's "TPF-platform specific changes to various files" patch
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config-tpf.h | 3 | ||||
-rw-r--r-- | lib/setup.h | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/config-tpf.h b/lib/config-tpf.h index 107158ca8..e67467ba6 100644 --- a/lib/config-tpf.h +++ b/lib/config-tpf.h @@ -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 diff --git a/lib/setup.h b/lib/setup.h index efab2ea6f..7316f1e45 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -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> |