summaryrefslogtreecommitdiff
path: root/Xtransint.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2013-11-06 23:13:28 -0800
committerKeith Packard <keithp@keithp.com>2013-11-06 23:15:40 -0800
commit074614940c570524e1446f55fc12a64415057e1f (patch)
treefcf91798a4e272fac04186d435186c4748a776fc /Xtransint.h
parenta7094c389ac9fd5ca265996f76eb55cb1133974b (diff)
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 <kettenis@openbsd.org> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com> v2 - make sure this is only defined on systems where the code actually works (Linux for now)
Diffstat (limited to 'Xtransint.h')
-rw-r--r--Xtransint.h4
1 files changed, 3 insertions, 1 deletions
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_