>From bb76778ad3fff59ea851b30386586aa688cfb1fa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 Jan 2023 23:22:41 +0100 Subject: [PATCH] Fix a compilation error on a glibc system with clang 15. * jitter/jitter-missing.h (flockfile, funlockfile): Don't declare these functions if we are not implementing them in jitter-missing.c. --- jitter/jitter-missing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jitter/jitter-missing.h b/jitter/jitter-missing.h index 5de8115..024b6c6 100644 --- a/jitter/jitter-missing.h +++ b/jitter/jitter-missing.h @@ -125,6 +125,8 @@ implementation in jitter-missing.c is disabled by a CPP conditional if the system is found to have a real implementation at configure time. */ +#if ! defined (JITTER_HAVE_FLOCKFILE) + /* Do nothing. */ void flockfile () @@ -135,4 +137,6 @@ void funlockfile () __attribute__ ((nonnull (1))); +#endif /* #if ! defined (JITTER_HAVE_FLOCKFILE) */ + #endif // #ifndef JITTER_MISSING_H_ -- 2.34.1