diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 1b7175d9ef..74e26edad6 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1983,6 +1983,7 @@ keep_going: /* We will come back to here until there is continue; } +#ifdef F_SETFD if (fcntl(conn->sock, F_SETFD, FD_CLOEXEC) == -1) { appendPQExpBuffer(&conn->errorMessage, @@ -1992,6 +1993,7 @@ keep_going: /* We will come back to here until there is conn->addr_cur = addr_cur->ai_next; continue; } +#endif /* F_SETFD */ if (!IS_AF_UNIX(addr_cur->ai_family)) {