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, 5 insertions, 1 deletions
diff --git a/X11/xtrans/Xtransint.h b/X11/xtrans/Xtransint.h
index dd886db87..1f32f0cae 100644
--- a/X11/xtrans/Xtransint.h
+++ b/X11/xtrans/Xtransint.h
@@ -72,7 +72,9 @@ from The Open Group.
# define XTRANSDEBUG 1
#endif
-#define XTRANS_SEND_FDS 1
+#if XTRANS_SEND_FDS && !(defined(linux) || defined(__sun))
+#error "FD passing support only on Linux & Solaris"
+#endif
#ifdef WIN32
# define _WILLWINSOCK_
@@ -289,6 +291,7 @@ typedef struct _Xtransport {
int /* size */
);
+#if XTRANS_SEND_FDS
int (*SendFd)(
XtransConnInfo, /* connection */
int, /* fd */
@@ -298,6 +301,7 @@ typedef struct _Xtransport {
int (*RecvFd)(
XtransConnInfo /* connection */
);
+#endif
int (*Disconnect)(
XtransConnInfo /* connection */