1
0
Fork 0
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:
Gerhard Rieger 2022-01-02 13:08:29 +01:00
parent ffa09eac00
commit 967e2b24b5
6 changed files with 47 additions and 8 deletions

View file

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