Gary R. Schmidt via Postfix-users:
> peekfd.c: In function 'peekfd':
> peekfd.c:78:16: error: implicit declaration of function 'shutdown' 
> [https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration]
>     78 |         (void) shutdown(fd, SHUT_RDWR);
>        |                ^~~~~~~~
> *** Error code 1
> make: Fatal error: Command failed for target `peekfd.o'

My Solaris test VM is behind the times (it was originally created
with VMware and converted to VirtualBox). I'll see how much trouble
it is to get a newer image.

> I just bunged the following after line 41, "#include <sys/ioctl.h>":
> #ifdef SUNOS5
> #include <sys/socket.h>
> #endif
> 
> And all was copacetic.

This code was part of am ancient Solaris bug workaround that may
no longer be needed.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to