1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/xbps/0001-configure-fix-vasprintf-test.patch
2017-03-24 10:28:49 +01:00

32 lines
793 B
Diff

From 58107bf76ad1310abf52d44d36fc165f2efd629d Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Fri, 24 Mar 2017 10:19:36 +0100
Subject: [PATCH] configure: fix vasprintf test
Fix the test for vasprintf function which failed with musl libc and
fortify-headers on aarch64:
_vasprintf.c:4:24: error: incompatible type for argument 3 of 'vasprintf'
vasprintf(NULL, NULL, NULL);
^~~~
---
configure | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 861a67d0..b043dab0 100755
--- a/configure
+++ b/configure
@@ -390,7 +390,8 @@ else
#define _GNU_SOURCE
#include <stdio.h>
int main(void) {
- vasprintf(NULL, NULL, NULL);
+ va_list ap;
+ vasprintf(NULL, NULL, ap);
return 0;
}
EOF
--
2.12.1