Skip to content
Snippets Groups Projects
Commit 85b77209 authored by Yang Tse's avatar Yang Tse
Browse files

examples/externalsocket.c: fix SunPro compilation issue

parent e880680f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment