aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/externalsocket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/examples/externalsocket.c b/docs/examples/externalsocket.c
index 6e2a773b2..1b326c8b2 100644
--- a/docs/examples/externalsocket.c
+++ b/docs/examples/externalsocket.c
@@ -47,6 +47,10 @@
#define IPADDR "127.0.0.1"
#define PORTNUM 80
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xffffffff
+#endif
+
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
{
int written = fwrite(ptr, size, nmemb, (FILE *)stream);