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

This commit is contained in:
Yang Tse 2009-05-01 12:39:40 +00:00
parent fdc091a857
commit 5a91746b80
13 changed files with 249 additions and 10 deletions

View file

@ -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

View file

@ -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>