From 85b77209ae10d6d0fc90f93a47b06440aa184ede Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 10 Dec 2012 18:06:35 +0100 Subject: examples/externalsocket.c: fix SunPro compilation issue --- docs/examples/externalsocket.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3