SUSv2 mandates that <fcntl.h> provide both F_SETFD and FD_CLOEXEC,
so it seems pretty unlikely that any platforms remain without those.
Remove the #ifdef-ery installed by commit
7627b91cd to see if the
buildfarm agrees.
Discussion: https://postgr.es/m/21444.
1492798101@sss.pgh.pa.us
#include "common/ip.h"
#include "mb/pg_wchar.h"
-#ifndef FD_CLOEXEC
-#define FD_CLOEXEC 1
-#endif
-
#ifndef WIN32
#define PGPASSFILE ".pgpass"
continue;
}
-#ifdef F_SETFD
if (fcntl(conn->sock, F_SETFD, FD_CLOEXEC) == -1)
{
appendPQExpBuffer(&conn->errorMessage,
conn->addr_cur = addr_cur->ai_next;
continue;
}
-#endif /* F_SETFD */
if (!IS_AF_UNIX(addr_cur->ai_family))
{