summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-01-06 02:32:57 +0000
committerKevin Steves <stevesk@pobox.com>2002-01-06 02:32:57 +0000
commitf49a1191c772673c5e90499c7c295da6630b1e96 (patch)
treec4530c12109c00e192eac7191809657966f0c462 /defines.h
parent0bd4b34c9b76ed5a4cbff74dde09ae0112aefcce (diff)
downloadopenssh-git-f49a1191c772673c5e90499c7c295da6630b1e96.tar.gz
- (stevesk) defines.h: determine _PATH_UNIX_X; currently "/tmp/.X11-unix/X%u"
for all platforms except HP-UX, which is "/usr/spool/sockets/X11/%u".
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 838f1093..ab98e6e4 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.75 2001/10/31 22:32:34 djm Exp $ */
+/* $Id: defines.h,v 1.76 2002/01/06 02:32:57 stevesk Exp $ */
/* Necessary headers */
@@ -356,6 +356,16 @@ struct winsize {
#define _PATH_XAUTH XAUTH_PATH
#endif /* XAUTH_PATH */
+/* derived from XF4/xc/lib/dps/Xlibnet.h */
+#ifndef X_UNIX_PATH
+#ifdef __hpux
+#define X_UNIX_PATH "/usr/spool/sockets/X11/%u"
+#else
+#define X_UNIX_PATH "/tmp/.X11-unix/X%u"
+#endif
+#endif /* X_UNIX_PATH */
+#define _PATH_UNIX_X X_UNIX_PATH
+
#ifndef _PATH_TTY
# define _PATH_TTY "/dev/tty"
#endif