libgd: avoid recursive and redundant dependencies
[feed/packages.git] / utils / vim / patches / 020-macos.patch
1 From 5289783e0b07cfc3f92ee933261ca4c4acdca007 Mon Sep 17 00:00:00 2001
2 From: Bram Moolenaar <Bram@vim.org>
3 Date: Thu, 2 Jul 2020 22:50:37 +0200
4 Subject: [PATCH] patch 8.2.1119: configure fails with Xcode 12 beta
5
6 Problem: Configure fails with Xcode 12 beta.
7 Solution: use "return" instead of "exit()". (Nico Weber, closes #6381)
8 ---
9 src/auto/configure | 4 ++--
10 src/configure.ac | 4 ++--
11 src/version.c | 2 ++
12 3 files changed, 6 insertions(+), 4 deletions(-)
13
14 --- a/src/auto/configure
15 +++ b/src/auto/configure
16 @@ -14005,8 +14005,8 @@ else
17 main() {
18 uint32_t nr1 = (uint32_t)-1;
19 uint32_t nr2 = (uint32_t)0xffffffffUL;
20 - if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
21 - exit(0);
22 + if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
23 + return 0;
24 }
25 _ACEOF
26 if ac_fn_c_try_run "$LINENO"; then :
27 --- a/src/configure.ac
28 +++ b/src/configure.ac
29 @@ -4129,8 +4129,8 @@ AC_TRY_RUN([
30 main() {
31 uint32_t nr1 = (uint32_t)-1;
32 uint32_t nr2 = (uint32_t)0xffffffffUL;
33 - if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
34 - exit(0);
35 + if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) return 1;
36 + return 0;
37 }],
38 AC_MSG_RESULT(ok),
39 AC_MSG_ERROR([WRONG! uint32_t not defined correctly.]),