examples/externalsocket.c: fix SunPro compilation issue

This commit is contained in:
Yang Tse 2012-12-10 18:06:35 +01:00
parent e880680fb6
commit 85b77209ae

View File

@ -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);