aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/logging.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-04-23 11:38:09 +0000
committerLRN <lrn1986@gmail.com>2013-04-23 11:38:09 +0000
commitaeaea9eda26ce82e1ea2d88e0847d1a79f1ae1a9 (patch)
tree4d2c95e9cc24b3e87e8cbc3ca12894221fc74667 /doc/examples/logging.c
parent05a6e239a353f9761bdfb37b7d87cfed1d7836fe (diff)
downloadlibmicrohttpd-aeaea9eda26ce82e1ea2d88e0847d1a79f1ae1a9.tar.gz
libmicrohttpd-aeaea9eda26ce82e1ea2d88e0847d1a79f1ae1a9.zip
W32 compatibility, also use ISO C instead of POSIX
Diffstat (limited to 'doc/examples/logging.c')
-rw-r--r--doc/examples/logging.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/logging.c b/doc/examples/logging.c
index b8d0341d..27545231 100644
--- a/doc/examples/logging.c
+++ b/doc/examples/logging.c
@@ -2,8 +2,12 @@
2 you see fit (Public Domain) */ 2 you see fit (Public Domain) */
3 3
4#include <sys/types.h> 4#include <sys/types.h>
5#ifndef _WIN32
5#include <sys/select.h> 6#include <sys/select.h>
6#include <sys/socket.h> 7#include <sys/socket.h>
8#else
9#include <winsock2.h>
10#endif
7#include <microhttpd.h> 11#include <microhttpd.h>
8#include <stdio.h> 12#include <stdio.h>
9 13