diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-07 21:29:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-08 10:37:32 +0200 |
commit | ed977f0b6c849739d3c843c8425442265e2eb7ca (patch) | |
tree | 5d89865cdaf60c1f61f9f987b9030be4ae7d06a0 /external | |
parent | 93d0c905fea61b689a984001d729f4fdc989b52a (diff) |
external/openldap: Implicit int in configure check
...causing
> checking for compatible POSIX regex... no
> configure: error: broken POSIX regex!
> make[1]: *** [external/openldap/ExternalProject_openldap.mk:40: workdir/ExternalProject/openldap/build] Error 1
due to
> conftest.c:88:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
with Clang 15 trunk after
<https://github.com/llvm/llvm-project/commit/2cb2cd242ca08d0bbd2a51a41f1317442e5414fc>
"Change the behavior of implicit int diagnostics"
Change-Id: I8fb70ce21a73293e20bbc5b09c133141aa9b0ca1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133995
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/openldap/UnpackedTarball_openldap.mk | 1 | ||||
-rw-r--r-- | external/openldap/configure-c99.patch | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/external/openldap/UnpackedTarball_openldap.mk b/external/openldap/UnpackedTarball_openldap.mk index 61a083ddcd8a..999a1eddad0b 100644 --- a/external/openldap/UnpackedTarball_openldap.mk +++ b/external/openldap/UnpackedTarball_openldap.mk @@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,openldap,\ $(eval $(call gb_UnpackedTarball_add_patches,openldap,\ external/openldap/openldap-2.4.44.patch.1 \ + external/openldap/configure-c99.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/openldap/configure-c99.patch b/external/openldap/configure-c99.patch new file mode 100644 index 000000000000..f1c3da6c4c23 --- /dev/null +++ b/external/openldap/configure-c99.patch @@ -0,0 +1,11 @@ +--- configure ++++ configure +@@ -14691,7 +14691,7 @@ + #include <sys/types.h> + #include <regex.h> + static char *pattern, *string; +-main() ++int main() + { + int rc; + regex_t re; |