Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
@ -21,11 +21,6 @@
* vncauth.c - Functions for VNC password management and authentication.
*/
#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
#define _XOPEN_SOURCE 600
#endif
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
#include <sys/types.h>
@ -2,9 +2,6 @@
* @example vncev.c
* This program is a simple server to show events coming from the client
#include <stdio.h>
#include <stdlib.h>
@ -22,9 +22,6 @@
* listen.c - listen for incoming connections
#include <unistd.h>
#ifdef WIN32
@ -23,11 +23,6 @@
* rfbproto.c - functions to deal with client side of RFB protocol.
#ifndef WIN32
@ -22,14 +22,6 @@
* sockets.c - functions to deal with sockets.
#ifdef __linux__
/* Setting this on other systems hides definitions such as INADDR_LOOPBACK.
* The check should be for __GLIBC__ in fact. */
# define _POSIX_SOURCE
#include <errno.h>
#include <fcntl.h>
@ -18,10 +18,6 @@
* USA.
#ifndef _MSC_VER
#define _XOPEN_SOURCE 500
#include <rfb/rfbclient.h>
@ -30,10 +30,6 @@
#define strdup _strdup /* Prevent POSIX deprecation warnings */
#include <string.h>
#include <rfb/rfb.h>
#include <ctype.h>
@ -12,9 +12,6 @@
extern "C" {
#include <rfb/rfbregion.h>
#include "private.h"
@ -27,12 +27,6 @@
@ -25,9 +25,6 @@
@ -42,15 +42,6 @@
@ -26,10 +26,6 @@
/* errno */
@ -1,6 +1,3 @@
#include <math.h>
#include <time.h>
#include <stdarg.h>