From 074614940c570524e1446f55fc12a64415057e1f Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 6 Nov 2013 23:13:28 -0800 Subject: Don't include file descriptor passing code by default Leave it up to the consumer to request this functionality by defining XTRANS_SEND_FDS. Signed-off-by: Mark Kettenis Reviewed-by: Keith Packard Signed-off-by: Keith Packard v2 - make sure this is only defined on systems where the code actually works (Linux for now) --- Xtransint.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xtransint.h b/Xtransint.h index dd886db..581af9f 100644 --- a/Xtransint.h +++ b/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) +#error "FD passing support only on Linux" +#endif #ifdef WIN32 # define _WILLWINSOCK_ -- cgit v1.2.3