diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-02 22:05:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-02 22:05:23 +0000 |
commit | c79de8d86efd415ce8b8d67aadfa00981e3e0802 (patch) | |
tree | df90a0894ce2e457b05205078466ed144ae86220 /lib | |
parent | d670f308a64824443313e4893ae44e01af7eee8c (diff) |
less complicated code for the MSG_NOSIGNAL detection
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h index a2d039268..03154331b 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -116,10 +116,11 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #endif #endif -#ifdef HAVE_MSG_NOSIGNAL +#ifdef MSG_NOSIGNAL /* If we have the MSG_NOSIGNAL define, we make sure to use that in the forth argument to send() and recv() */ #define SEND_4TH_ARG MSG_NOSIGNAL +#define HAVE_MSG_NOSIGNAL 1 /* we have MSG_NOSIGNAL */ #else #define SEND_4TH_ARG 0 #endif |