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
This commit is contained in:
matt335672 2023-03-13 20:52:00 +00:00
parent 45983b6c5e
commit 56d99d8535
1 changed files with 4 additions and 1 deletions

View File

@ -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