From 2a88ec3c02ab46c8b816cfa348ea53075f57a59c Mon Sep 17 00:00:00 2001
From: OBATA Akio <obache@wizdas.com>
Date: Sat, 6 Apr 2019 16:49:26 +0900
Subject: Revive NetBSD support

Catch up to TDE and OS changes

Signed-off-by: OBATA Akio <obache@wizdas.com>
---
 tdm/config.def | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'tdm/config.def')

diff --git a/tdm/config.def b/tdm/config.def
index 5cfc56ed5..4209c8212 100644
--- a/tdm/config.def
+++ b/tdm/config.def
@@ -79,6 +79,12 @@
 #else
 # define DEF_SERVER_CMD XBINDIR "/X"
 #endif
+
+#if defined(__NetBSD__) && !defined(__powerpc__)
+# define DEF_SERVER_ARGS "-nolisten tcp vt05"
+#else
+# define DEF_SERVER_ARGS "-nolisten tcp"
+#endif
 </code>
 
 # The contents of this section are copied mostly verbatim to the
@@ -1368,9 +1374,9 @@ Description:
 
 Key: ServerArgsLocal
 Type: string
-Default: "-nolisten tcp"
+Default: DEF_SERVER_ARGS
 User: core
-Instance: :*/"-deferglyphs 16 -nolisten tcp"
+Instance: :*/"-deferglyphs 16 " DEF_SERVER_ARGS
 Comment: &
 Description:
  Additional arguments for the &X-Server;s for local sessions.
-- 
cgit v1.2.3

