diff options
author | LRN <lrn1986@gmail.com> | 2013-04-23 11:38:09 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-04-23 11:38:09 +0000 |
commit | aeaea9eda26ce82e1ea2d88e0847d1a79f1ae1a9 (patch) | |
tree | 4d2c95e9cc24b3e87e8cbc3ca12894221fc74667 /doc/examples/logging.c | |
parent | 05a6e239a353f9761bdfb37b7d87cfed1d7836fe (diff) | |
download | libmicrohttpd-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.c | 4 |
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 | ||