From 56d99d8535131a7376ae135f70ea945ed6a3cbf1 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Mon, 13 Mar 2023 20:52:00 +0000 Subject: [PATCH] Add AM_CPPFLAGS to makefile.am for waitforx Without this, the compilation of waitforx can fail on FreeBSD with this error:- waitforx.c:1:10: fatal error: 'X11/extensions/Xrandr.h' file not found This PR makes the use of AM_CPPFLAGS and AM_CFLAGS the same as that for (e.g.) chansrv which also depends on X includes --- waitforx/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/waitforx/Makefile.am b/waitforx/Makefile.am index 359361c3..22e75c4c 100644 --- a/waitforx/Makefile.am +++ b/waitforx/Makefile.am @@ -2,7 +2,10 @@ bin_PROGRAMS = \ xrdp-waitforx AM_LDFLAGS = -lX11 -lXrandr -AM_CFLAGS = -I$(top_srcdir)/common + +AM_CPPFLAGS = -I$(top_srcdir)/common + +AM_CFLAGS = $(X_CFLAGS) xrdp_waitforx_SOURCES = waitforx.c