From 08122b137e76ffcf7067f634a7668002732e11d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 12 Jun 2015 02:56:58 +0200 Subject: Fix FTBFS on freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdm/kfrontend/gentdmconf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tdm/kfrontend/gentdmconf.c') diff --git a/tdm/kfrontend/gentdmconf.c b/tdm/kfrontend/gentdmconf.c index 9a7bc1258..0576eef56 100644 --- a/tdm/kfrontend/gentdmconf.c +++ b/tdm/kfrontend/gentdmconf.c @@ -44,7 +44,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include #include #include -#ifdef BSD +#if defined(BSD) && !defined(HAVE_UTMPX) # include #endif @@ -1537,8 +1537,13 @@ edit_startup( File *file ) "fi\n") | #else # ifdef BSD +# ifdef HAVE_UTMPX + delstr( file, "\n" +"exec sessreg -a -l $DISPLAY -x */Xservers $USER\n" ) | +# else delstr( file, "\n" "exec sessreg -a -l $DISPLAY -x */Xservers -u " _PATH_UTMP " $USER\n" ) | +# endif # endif #endif /* _AIX */ delstr( file, "\n" @@ -1586,8 +1591,13 @@ edit_reset( File *file ) "fi\n" ) | #else # ifdef BSD +# ifdef HAVE_UTMPX + delstr( file, "\n" +"exec sessreg -d -l $DISPLAY -x */Xservers $USER\n" ) | +# else delstr( file, "\n" "exec sessreg -d -l $DISPLAY -x */Xservers -u " _PATH_UTMP " $USER\n" ) | +# endif # endif #endif /* _AIX */ delstr( file, "\n" -- cgit v1.2.1