diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-10 18:06:35 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-10 18:06:35 +0100 |
commit | 85b77209ae10d6d0fc90f93a47b06440aa184ede (patch) | |
tree | 9be605ed6fc4378565f551465d7bcce8999539e0 | |
parent | e880680fb666f42cbb0cc3457b35c51d23695980 (diff) |
examples/externalsocket.c: fix SunPro compilation issue
-rw-r--r-- | docs/examples/externalsocket.c | 4 |
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); |