[PATCH xserver] Xorg.wrap: Fix the console check on DragonFly
DragonFly can use the same VT_GETINDEX ioctl mechanism as the existing FreeBSD code. Signed-off-by: François Tigeot --- hw/xfree86/xorg-wrapper.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/xorg-wrapper.c b/hw/xfree86/xorg-wrapper.c index 6c1022358..680646951 100644 --- a/hw/xfree86/xorg-wrapper.c +++ b/hw/xfree86/xorg-wrapper.c @@ -39,7 +39,8 @@ #include #endif #include -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ +defined(__DragonFly__) #include #endif #include @@ -170,7 +171,8 @@ static int on_console(int fd) r = fstat(fd, ); if (r == 0 && S_ISCHR(st.st_mode) && major(st.st_rdev) == 4) return 1; -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ + defined(__DragonFly__) int idx; if (ioctl(fd, VT_GETINDEX, ) != -1) -- 2.25.1 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
[PATCH xserver] Enable XTRANS_SEND_FDS on FreeBSD, DragonFly and OpenBSD
This code is based on local patches which had been sitting in FreeBSD and OpenBSD ports. Reviewed-by: Matthieu Herrb <matth...@herrb.eu> Signed-off-by: François Tigeot <ftig...@wolfpond.org> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dcc3968..4fff769 100644 --- a/configure.ac +++ b/configure.ac @@ -1231,7 +1231,7 @@ AC_ARG_ENABLE(xtrans-send-fds, AS_HELP_STRING([--disable-xtrans-send-fds], [Use case "x$XTRANS_SEND_FDS" in xauto) case "$host_os" in - linux*|solaris*) + linux*|solaris*|freebsd*|dragonfly*|openbsd*) XTRANS_SEND_FDS=yes ;; *) -- 2.9.2 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
Re: [PATCH xserver] Enable XTRANS_SEND_FDS on FreeBSD, DragonFly and OpenBSD
Hi, Sure, here's the second version. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
[PATCH xserver] Enable XTRANS_SEND_FDS on FreeBSD and DragonFly too
This code is based on a local patch which had actually been sitting in FreeBSD ports since 2015. Signed-off-by: François Tigeot <ftig...@wolfpond.org> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c09b854..b9e27d0 100644 --- a/configure.ac +++ b/configure.ac @@ -1231,7 +1231,7 @@ AC_ARG_ENABLE(xtrans-send-fds, AS_HELP_STRING([--disable-xtrans-send-fds], [Use case "x$XTRANS_SEND_FDS" in xauto) case "$host_os" in - linux*|solaris*) + linux*|solaris*|freebsd*|dragonfly*) XTRANS_SEND_FDS=yes ;; *) -- 2.9.2 ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel