mirror of
https://repo.or.cz/socat.git
synced 2025-07-17 16:43:24 +00:00
AIX: Fixed configure and compile issues
This commit is contained in:
parent
ffa09eac00
commit
967e2b24b5
6 changed files with 47 additions and 8 deletions
2
socat.c
2
socat.c
|
@ -1222,7 +1222,7 @@ int gettimestamp(char *timestamp) {
|
|||
#if HAVE_STRFTIME
|
||||
bytes = strftime(timestamp, 20, "%Y/%m/%d %H:%M:%S", localtime(&nowt));
|
||||
#if HAVE_CLOCK_GETTIME
|
||||
bytes += sprintf(timestamp+19, "."F_tv_usec" ", now.tv_nsec/1000);
|
||||
bytes += sprintf(timestamp+19, "."F_tv_nsec" ", now.tv_nsec/1000);
|
||||
#elif HAVE_PROTOTYPE_LIB_gettimeofday
|
||||
bytes += sprintf(timestamp+19, "."F_tv_usec" ", now.tv_usec);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue