From db35a37def14b72181f3630efeea0e0433103c41 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Fri, 27 Jan 2023 21:54:48 +0100 Subject: Install a the configure_file (config.h) and use in headers This addresses: https://github.com/libfuse/libfuse/issues/724 HAVE_LIBC_VERSIONED_SYMBOLS configures the library if to use versioned symbols and is set at meson configuration time. External filesystems (the main target, actually) include fuse headers and the preprocessor then acts on HAVE_LIBC_VERSIONED_SYMBOLS. Problem was now that 'config.h' was not distributed with libfuse and so HAVE_LIBC_VERSIONED_SYMBOLS was never defined with external tools and the preprocessor did the wrong decision. This commit also increases the the minimal meson version, as this depends on meson feature only available in 0.50 WARNING: Project specifies a minimum meson_ version '>= 0.42' but uses features which were added in newer versions: * 0.50.0: {'install arg in configure_file'} Additionally the config file has been renamed to "fuse_config.h" to avoid clashes - 'config.h' is not very specific. --- example/passthrough.c | 4 ---- example/passthrough_fh.c | 4 ---- example/passthrough_hp.cc | 4 ---- example/passthrough_ll.c | 2 -- example/poll.c | 2 -- example/poll_client.c | 2 +- example/printcap.c | 2 -- 7 files changed, 1 insertion(+), 19 deletions(-) (limited to 'example') diff --git a/example/passthrough.c b/example/passthrough.c index ae13225..5963d58 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -25,10 +25,6 @@ #define FUSE_USE_VERSION 31 -#ifdef HAVE_CONFIG_H -#include -#endif - #define _GNU_SOURCE #ifdef linux diff --git a/example/passthrough_fh.c b/example/passthrough_fh.c index bdc5ecd..bc02794 100644 --- a/example/passthrough_fh.c +++ b/example/passthrough_fh.c @@ -25,10 +25,6 @@ #define FUSE_USE_VERSION 31 -#ifdef HAVE_CONFIG_H -#include -#endif - #define _GNU_SOURCE #include diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc index b367978..26fa42e 100644 --- a/example/passthrough_hp.cc +++ b/example/passthrough_hp.cc @@ -45,10 +45,6 @@ #define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 12) -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index a1d237a..8b2eb4b 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -37,8 +37,6 @@ #define _GNU_SOURCE #define FUSE_USE_VERSION 34 -#include "config.h" - #include #include #include diff --git a/example/poll.c b/example/poll.c index 521e6aa..e231b96 100644 --- a/example/poll.c +++ b/example/poll.c @@ -23,8 +23,6 @@ #define FUSE_USE_VERSION 31 -#include - #include #include #include diff --git a/example/poll_client.c b/example/poll_client.c index 222452a..e51bd0e 100644 --- a/example/poll_client.c +++ b/example/poll_client.c @@ -19,7 +19,7 @@ * \include poll_client.c */ -#include +#include #include #include diff --git a/example/printcap.c b/example/printcap.c index 4867988..30e2057 100644 --- a/example/printcap.c +++ b/example/printcap.c @@ -21,8 +21,6 @@ #define FUSE_USE_VERSION 31 -#include - #include #include #include -- cgit v1.2.3