aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 1622f0cc8..ba564120a 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -378,6 +378,14 @@ typedef int sig_atomic_t;
#endif
+/*
+ * We use this ZERO_NULL to avoid picky compiler warnings,
+ * when assigning a NULL pointer to a function pointer var.
+ */
+
+#define ZERO_NULL 0
+
+
#if defined (__LP64__) && defined(__hpux) && !defined(_XOPEN_SOURCE_EXTENDED)
#include <sys/socket.h>
/* HP-UX has this oddity where it features a few functions that don't work
@@ -460,5 +468,6 @@ inline static ssize_t Curl_hp_recvfrom(int s, void *buf, size_t len, int flags,
#endif /* HPUX work-around */
+
#endif /* __SETUP_ONCE_H */