aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-12-10 18:06:35 +0100
committerYang Tse <yangsita@gmail.com>2012-12-10 18:06:35 +0100
commit85b77209ae10d6d0fc90f93a47b06440aa184ede (patch)
tree9be605ed6fc4378565f551465d7bcce8999539e0
parente880680fb666f42cbb0cc3457b35c51d23695980 (diff)
examples/externalsocket.c: fix SunPro compilation issue
-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);