From b76569d5ee34284ea8bb840cd212ab07b2de67b5 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Thu, 30 May 2024 16:57:35 +0200 Subject: [PATCH] buildsys: fix build on macOS with libssh2 present via homebrew Path to libssh2 headers was missing from CPPFLAGS resulting into FTBFS. Signed-off-by: Yury V. Zaytsev Signed-off-by: Andrew Borodin --- src/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index cca050cb8..06bd0bacb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,6 +26,13 @@ SUBDIRS += consaver AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\" endif +# required for textconf.c +if ENABLE_VFS +if ENABLE_VFS_SFTP +AM_CPPFLAGS += $(LIBSSH_CFLAGS) +endif +endif + AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS) localedir = $(datadir)/locale