While building in AIX platform, attributes like fd_set, struct timeval are missing. Hence build is failing, error copied below. ``` /opt/freeware/bin/gcc -maix64 -O2 -DHAVE_CONFIG_H -I../src -I../src -I../include -I/opt/freeware/include -g -O2 -MT scp_write_nonblock.o -MD -MP -MF .deps/scp_write_nonblock.Tpo -c -o scp_write_nonblock.o scp_write_nonblock.c scp_write_nonblock.c: In function 'waitsocket': scp_write_nonblock.c:33:20: error: storage size of 'timeout' isn't known 33 | struct timeval timeout; | ^~~~~~~ scp_write_nonblock.c:35:5: error: unknown type name 'fd_set' 35 | fd_set fd; | ^~~~~~ scp_write_nonblock.c:36:5: error: unknown type name 'fd_set' 36 | fd_set *writefd = NULL; | ^~~~~~ scp_write_nonblock.c:37:5: error: unknown type name 'fd_set' 37 | fd_set *readfd = NULL; | ^~~~~~ scp_write_nonblock.c:43:5: warning: implicit declaration of function 'FD_ZERO'; did you mean 'NZERO'? [-Wimplicit-function-declaration] 43 | FD_ZERO(&fd); | ^~~~~~~ | NZERO scp_write_nonblock.c:45:5: warning: implicit declaration of function 'FD_SET' [-Wimplicit-function-declaration] 45 | FD_SET(socket_fd, &fd); | ^~~~~~ scp_write_nonblock.c:56:10: warning: implicit declaration of function 'select' [-Wimplicit-function-declaration] 56 | rc = select((int)(socket_fd + 1), readfd, writefd, NULL, &timeout); | ^~~~~~ gmake: *** [Makefile:641: scp_write_nonblock.o] Error 1 ```
Activity
shubhamhii commentedon Mar 28, 2024
I have created a PR for the same. #1335
examples: restore `sys/time.h` for AIX
examples: restore `sys/time.h` for AIX
example: restore `sys/time.h` for AIX
example: restore `sys/time.h` for AIX
example: restore `sys/time.h` for AIX