hw/xwin: Remove standard includes from internal.h and add them where needed

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2013-06-19 18:09:07 +01:00
parent 5992550c4c
commit 52f3cf3c61
2 changed files with 9 additions and 18 deletions

View File

@ -32,20 +32,6 @@
#ifndef WINCLIPBOARD_INTERNAL_H
#define WINCLIPBOARD_INTERNAL_H
/* Standard library headers */
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __CYGWIN__
#include <sys/select.h>
#else
#include <X11/Xwinsock.h>
#endif
#include <fcntl.h>
#include <setjmp.h>
#include <pthread.h>
/* X headers */
#include <X11/X.h>
#include <X11/Xatom.h>

View File

@ -36,10 +36,15 @@
#define HAS_WINSOCK 1
#endif
#include <sys/types.h>
#include <signal.h>
#include "windisplay.h"
#ifdef __CYGWIN__
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <setjmp.h>
#include <pthread.h>
#ifdef HAS_WINSOCK
#include <X11/Xwinsock.h>
#else
#include <errno.h>
#endif