examples/externalsocket.c: fix SunPro compilation issue
This commit is contained in:
parent
e880680fb6
commit
85b77209ae
@ -47,6 +47,10 @@
|
|||||||
#define IPADDR "127.0.0.1"
|
#define IPADDR "127.0.0.1"
|
||||||
#define PORTNUM 80
|
#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)
|
static size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||||
{
|
{
|
||||||
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
int written = fwrite(ptr, size, nmemb, (FILE *)stream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user