From 43ee3109a34736f8b6215babb8a6aaab8b1b76c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 19 Mar 2009 07:59:04 +0000 Subject: [PATCH] - don't fail if SOCK_CLOEXEC is unsupported Changed files: neon-sock-cloexec.patch -> 1.1 --- neon-sock-cloexec.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 neon-sock-cloexec.patch diff --git a/neon-sock-cloexec.patch b/neon-sock-cloexec.patch new file mode 100644 index 0000000..1e58681 --- /dev/null +++ b/neon-sock-cloexec.patch @@ -0,0 +1,11 @@ +--- neon-0.28.4/src/ne_socket.c.org 2009-03-19 08:46:03.086665679 +0100 ++++ neon-0.28.4/src/ne_socket.c 2009-03-19 08:52:50.236710428 +0100 +@@ -1209,6 +1209,8 @@ + /* use SOCK_STREAM rather than ai_socktype: some getaddrinfo + * implementations do not set ai_socktype, e.g. RHL6.2. */ + fd = socket(ia_family(addr), SOCK_STREAM | SOCK_CLOEXEC, ia_proto(addr)); ++ if (fd < 0 && errno == EINVAL) ++ fd = socket(ia_family(addr), SOCK_STREAM, ia_proto(addr)); + if (fd < 0) { + set_strerror(sock, ne_errno); + return -1; -- 2.44.0