From: Matthew Fernandez Date: Thu, 14 Apr 2022 02:57:15 +0000 (-0700) Subject: lefty: make a unix #include of unistd.h unconditional X-Git-Tag: 4.0.0~69^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba9dff6e6e7b2f40bf04a13efd19e756e66d7666;p=graphviz lefty: make a unix #include of unistd.h unconditional On unices, it is fine to assume the existence of unistd.h. Gitlab: #2204 --- diff --git a/cmd/lefty/os/unix/io.c b/cmd/lefty/os/unix/io.c index afd3bbd84..3b39a147f 100644 --- a/cmd/lefty/os/unix/io.c +++ b/cmd/lefty/os/unix/io.c @@ -35,6 +35,7 @@ #define FORK fork #endif #include +#include /* AI_NUMERICSERV as a value for the `ai_flags' member * of `struct addrinfo' of header has only @@ -56,10 +57,6 @@ #define AI_NUMERICSERV 0 #endif -#ifdef HAVE_UNISTD_H -#include -#endif - io_t *iop; int ion;