summaryrefslogtreecommitdiff
path: root/xserver/os/osdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/os/osdep.h')
-rw-r--r--xserver/os/osdep.h31
1 files changed, 3 insertions, 28 deletions
diff --git a/xserver/os/osdep.h b/xserver/os/osdep.h
index 3cd1216a7..ff55f890b 100644
--- a/xserver/os/osdep.h
+++ b/xserver/os/osdep.h
@@ -55,14 +55,7 @@ SOFTWARE.
#include <X11/Xdmcp.h>
#endif
-#ifdef _POSIX_SOURCE
#include <limits.h>
-#else
-#define _POSIX_SOURCE
-#include <limits.h>
-#undef _POSIX_SOURCE
-#endif
-
#include <stddef.h>
#include <X11/Xos.h>
@@ -140,6 +133,9 @@ extern int FlushClient(ClientPtr /*who */ ,
extern void FreeOsBuffers(OsCommPtr /*oc */
);
+void
+CloseDownFileDescriptor(OsCommPtr oc);
+
#include "dix.h"
#include "ospoll.h"
@@ -148,31 +144,10 @@ extern struct ospoll *server_poll;
Bool
listen_to_client(ClientPtr client);
-#if !defined(WIN32) || defined(__CYGWIN__)
-extern int *ConnectionTranslation;
-extern int ConnectionTranslationSize;
-static inline int GetConnectionTranslation(int conn) {
- if (conn >= ConnectionTranslationSize)
- return 0;
- return ConnectionTranslation[conn];
-}
-#else
-extern int GetConnectionTranslation(int conn);
-extern void SetConnectionTranslation(int conn, int client);
-extern void ClearConnectionTranslation(void);
-#endif
-
extern Bool NewOutputPending;
extern WorkQueuePtr workQueue;
-/* in WaitFor.c */
-#if defined(WIN32) && !defined(__CYGWIN__)
-typedef long int fd_mask;
-#endif
-#define ffs mffs
-extern int mffs(fd_mask);
-
/* in access.c */
extern Bool ComputeLocalClient(ClientPtr client);