diff options
Diffstat (limited to 'examples/vncev.c')
-rw-r--r-- | examples/vncev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/vncev.c b/examples/vncev.c index a8e0884..4051d2b 100644 --- a/examples/vncev.c +++ b/examples/vncev.c @@ -2,10 +2,14 @@ * @example vncev.c * This program is a simple server to show events coming from the client */ +#ifdef __STRICT_ANSI__ +#define _BSD_SOURCE +#endif +#include <rfb/rfbconfig.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> -#ifndef __MINGW32__ +#if LIBVNCSERVER_HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #include <rfb/rfb.h> |