summaryrefslogtreecommitdiff
path: root/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch
blob: 6fe679f551d11bb5a48696c4d8f898abe84b57fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://github.com/mgieseki/dvisvgm/pull/200

From e3cfc0976ec1f5bbcd389c318eabc2a783990de0 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Fri, 4 Nov 2022 05:07:09 +0000
Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration

Clang 16 makes -Wimplicit-function-declaration an error by default. We
need to include <stdlib.h> for exit().

Signed-off-by: Sam James <sam@gentoo.org>
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,7 @@ AC_CHECK_LIB([kpathsea], [kpse_find_file],,
 
 AC_MSG_CHECKING([kpathsea version])
 AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
+	#include <stdlib.h>
 	#include <kpathsea/kpathsea.h>
 	int main() {
 		FILE *f;