projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e880680
)
examples/externalsocket.c: fix SunPro compilation issue
author
Yang Tse
<yangsita@gmail.com>
Mon, 10 Dec 2012 17:06:35 +0000
(18:06 +0100)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 10 Dec 2012 17:06:35 +0000
(18:06 +0100)
docs/examples/externalsocket.c
patch
|
blob
|
history
diff --git
a/docs/examples/externalsocket.c
b/docs/examples/externalsocket.c
index 6e2a773b2201177b3ec0413166795068a20861f8..1b326c8b29e9a57e917379a06088b7741770cd0e 100644
(file)
--- 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);