mirror of
https://github.com/moparisthebest/socat
synced 2024-12-22 06:58:47 -05:00
long long supported for time_t, socklen_t and a few other libc types
This commit is contained in:
parent
fbb521e45e
commit
133c180fb1
3
CHANGES
3
CHANGES
@ -70,6 +70,9 @@ porting:
|
|||||||
behaviour on old glibc systems, and adapted all affected calls
|
behaviour on old glibc systems, and adapted all affected calls
|
||||||
appropriately
|
appropriately
|
||||||
|
|
||||||
|
Mike Frysinger provided a patch that supports long long for time_t,
|
||||||
|
socklen_t and a few other libc types.
|
||||||
|
|
||||||
docu:
|
docu:
|
||||||
libwrap always logs to syslog
|
libwrap always logs to syslog
|
||||||
|
|
||||||
|
16
compat.h
16
compat.h
@ -232,6 +232,10 @@
|
|||||||
#define F_time "%ld"
|
#define F_time "%ld"
|
||||||
# elif HAVE_BASIC_TIME_T==6
|
# elif HAVE_BASIC_TIME_T==6
|
||||||
#define F_time "%lu"
|
#define F_time "%lu"
|
||||||
|
# elif HAVE_BASIC_TIME_T==7
|
||||||
|
#define F_time "%Ld"
|
||||||
|
# elif HAVE_BASIC_TIME_T==8
|
||||||
|
#define F_time "%Lu"
|
||||||
# else
|
# else
|
||||||
#error "HAVE_BASIC_TIME_T is out of range:" HAVE_BASIC_TIME_T
|
#error "HAVE_BASIC_TIME_T is out of range:" HAVE_BASIC_TIME_T
|
||||||
# endif
|
# endif
|
||||||
@ -256,6 +260,10 @@
|
|||||||
#define F_socklen "%ld"
|
#define F_socklen "%ld"
|
||||||
# elif HAVE_BASIC_SOCKLEN_T==6
|
# elif HAVE_BASIC_SOCKLEN_T==6
|
||||||
#define F_socklen "%lu"
|
#define F_socklen "%lu"
|
||||||
|
# elif HAVE_BASIC_SOCKLEN_T==7
|
||||||
|
#define F_socklen "%Ld"
|
||||||
|
# elif HAVE_BASIC_SOCKLEN_T==8
|
||||||
|
#define F_socklen "%Lu"
|
||||||
# else
|
# else
|
||||||
#error "HAVE_BASIC_SOCKLEN_T is out of range:" HAVE_BASIC_SOCKLEN_T
|
#error "HAVE_BASIC_SOCKLEN_T is out of range:" HAVE_BASIC_SOCKLEN_T
|
||||||
# endif
|
# endif
|
||||||
@ -404,6 +412,10 @@
|
|||||||
#define F_st_nlink "%ld"
|
#define F_st_nlink "%ld"
|
||||||
# elif HAVE_TYPEOF_ST_NLINK==6
|
# elif HAVE_TYPEOF_ST_NLINK==6
|
||||||
#define F_st_nlink "%lu"
|
#define F_st_nlink "%lu"
|
||||||
|
# elif HAVE_TYPEOF_ST_NLINK==7
|
||||||
|
#define F_st_nlink "%Ld"
|
||||||
|
# elif HAVE_TYPEOF_ST_NLINK==8
|
||||||
|
#define F_st_nlink "%Lu"
|
||||||
# else
|
# else
|
||||||
#error "HAVE_TYPEOF_ST_NLINK is out of range:" HAVE_TYPEOF_ST_NLINK
|
#error "HAVE_TYPEOF_ST_NLINK is out of range:" HAVE_TYPEOF_ST_NLINK
|
||||||
# endif
|
# endif
|
||||||
@ -481,6 +493,10 @@
|
|||||||
#define F_st_blksize "%ld"
|
#define F_st_blksize "%ld"
|
||||||
# elif HAVE_TYPEOF_ST_BLKSIZE==6
|
# elif HAVE_TYPEOF_ST_BLKSIZE==6
|
||||||
#define F_st_blksize "%lu"
|
#define F_st_blksize "%lu"
|
||||||
|
# elif HAVE_TYPEOF_ST_BLKSIZE==7
|
||||||
|
#define F_st_blksize "%Ld"
|
||||||
|
# elif HAVE_TYPEOF_ST_BLKSIZE==8
|
||||||
|
#define F_st_blksize "%Lu"
|
||||||
# else
|
# else
|
||||||
#error "HAVE_TYPEOF_ST_BLKSIZE is out of range:" HAVE_TYPEOF_ST_BLKSIZE
|
#error "HAVE_TYPEOF_ST_BLKSIZE is out of range:" HAVE_TYPEOF_ST_BLKSIZE
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user