mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 23:53:25 +00:00
ftruncate64 cut its argument to 32 bits on systems with 32 bit long type
This commit is contained in:
parent
7c2039ada8
commit
4576b50e47
7 changed files with 54 additions and 12 deletions
8
compat.h
8
compat.h
|
@ -263,7 +263,13 @@
|
|||
|
||||
/* might be checked in later versions */
|
||||
#ifndef F_off
|
||||
#define F_off "%ld"
|
||||
# if HAVE_BASIC_OFF_T==3
|
||||
# define F_off "%d"
|
||||
# elif HAVE_BASIC_OFF_T==5
|
||||
# define F_off "%ld"
|
||||
# else
|
||||
#error "HAVE_BASIC_OFF_T is out of range:" HAVE_BASIC_OFF_T
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* default: long long */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue