os: Fix builds with -Dxdmcp=false

Fixes: https://github.com/X11Libre/xserver/issues/239
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111 2025-09-20 13:45:06 +03:00 committed by Enrico Weigelt
parent f252e04a78
commit 5943ca5a1d
8 changed files with 20 additions and 6 deletions

View File

@ -243,7 +243,7 @@ conf_data.set('XACE', '1')
conf_data.set('XCMISC', '1')
conf_data.set('XCSECURITY', build_xsecurity ? '1' : false)
conf_data.set('CONFIG_NAMESPACE', build_namespace ? '1' : false)
conf_data.set('XDMCP', xdmcp_dep.found() ? '1' : false)
conf_data.set('XDMCP', build_xdmcp ? '1' : false)
conf_data.set('XF86BIGFONT', build_xf86bigfont ? '1' : false)
conf_data.set('XF86DRI', build_dri1 ? '1' : false)
conf_data.set('XF86VIDMODE', 1)

View File

@ -427,10 +427,8 @@ else
endif
endif
xdmcp_dep = dependency('', required : false)
if get_option('xdmcp')
xdmcp_dep = dependency('xdmcp')
endif
build_xdmcp = get_option('xdmcp')
xdmcp_dep = dependency('xdmcp', required : build_xdmcp)
has_xdm_auth = get_option('xdm-auth-1')

View File

@ -180,7 +180,10 @@ SOFTWARE.
#include "dixstruct.h"
#include "xace.h"
#ifdef XDMCP
#include "xdmcp.h"
#endif
Bool defeatAccessControl = FALSE;

View File

@ -48,7 +48,10 @@ from The Open Group.
#include "os/auth.h"
#ifdef XDMCP
#include "xdmcp.h"
#endif
#include "xdmauth.h"
#include "mitauth.h"

View File

@ -115,7 +115,9 @@ SOFTWARE.
#include <systemd/sd-daemon.h>
#endif
#ifdef XDMCP
#include "xdmcp.h"
#endif
#define MAX_CONNECTIONS (1<<16)

View File

@ -55,7 +55,7 @@ if conf_data.get('HAVE_SIGACTION').to_int() != 0
srcs_os += 'busfault.c'
endif
if get_option('xdmcp')
if build_xdmcp
srcs_os += 'xdmcp.c'
endif

View File

@ -70,7 +70,11 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "dixfont.h"
#include <X11/fonts/libxfont2.h>
#include "osdep.h"
#ifdef XDMCP
#include "xdmcp.h"
#endif
#include "extension.h"
#include <signal.h>
#ifndef WIN32

View File

@ -43,7 +43,11 @@ from The Open Group.
#include "os.h"
#include "osdep.h"
#ifdef XDMCP
#include "xdmcp.h"
#endif
#include "xdmauth.h"
#include "dixstruct.h"