mirror of
https://github.com/curl/curl.git
synced 2026-07-27 09:27:17 +03:00
Use SIZEOF_OFF_T definition from config file
This commit is contained in:
parent
fdcb0cd2bc
commit
3e2487493e
4 changed files with 59 additions and 22 deletions
26
lib/setup.h
26
lib/setup.h
|
|
@ -302,6 +302,32 @@
|
|||
# define struct_stat struct stat
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Default sizeof(off_t) in case it hasn't been defined in config file.
|
||||
*/
|
||||
|
||||
#ifndef SIZEOF_OFF_T
|
||||
# if defined(__VMS) && (defined(__alpha) || defined(__ia64))
|
||||
# if defined(_LARGEFILE)
|
||||
# define SIZEOF_OFF_T 8
|
||||
# endif
|
||||
# elif defined(__OS400__) && defined(__ILEC400__)
|
||||
# if defined(_LARGE_FILES)
|
||||
# define SIZEOF_OFF_T 8
|
||||
# endif
|
||||
# elif defined(__MVS__) && defined(__IBMC__)
|
||||
# if defined(_LP64) || defined(_LARGE_FILES)
|
||||
# define SIZEOF_OFF_T 8
|
||||
# endif
|
||||
# elif defined(__370__) && defined(__IBMC__)
|
||||
# if defined(_LP64) || defined(_LARGE_FILES)
|
||||
# define SIZEOF_OFF_T 8
|
||||
# endif
|
||||
# else
|
||||
# define SIZEOF_OFF_T 4
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Below we define some functions. They should
|
||||
1. close a socket
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue