aboutsummaryrefslogtreecommitdiff
path: root/X11/xtrans/Xtransint.h
diff options
context:
space:
mode:
Diffstat (limited to 'X11/xtrans/Xtransint.h')
-rw-r--r--X11/xtrans/Xtransint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/X11/xtrans/Xtransint.h b/X11/xtrans/Xtransint.h
index f93f98fa4..96d9aa3ce 100644
--- a/X11/xtrans/Xtransint.h
+++ b/X11/xtrans/Xtransint.h
@@ -72,8 +72,8 @@ from The Open Group.
# define XTRANSDEBUG 1
#endif
-#ifndef _MSC_VER
-#define XTRANS_SEND_FDS 1
+#if XTRANS_SEND_FDS && !(defined(linux) || defined(__sun))
+#error "FD passing support only on Linux & Solaris"
#endif
#ifdef WIN32
@@ -291,6 +291,7 @@ typedef struct _Xtransport {
int /* size */
);
+#if XTRANS_SEND_FDS
int (*SendFd)(
XtransConnInfo, /* connection */
int, /* fd */
@@ -300,6 +301,7 @@ typedef struct _Xtransport {
int (*RecvFd)(
XtransConnInfo /* connection */
);
+#endif
int (*Disconnect)(
XtransConnInfo /* connection */