ports/devel/argp-standalone/files/patch-acinclude.m4
Baptiste Daroussin 22158a8d28 Fix configure with clang avoiding nested function
The detection of those issues was made by openbsd people (ajacoutot and rnagy)
See http://www.undeadly.org/cgi?action=article;sid=20170930133438

For this port our fix is slightly different than what they did, still the idea
is the same

Reported by:	ajacoutot@openbsd, rnagy@openbsd
2017-10-03 21:55:00 +00:00

20 lines
394 B
Text

--- acinclude.m4.orig 2004-02-07 17:15:46 UTC
+++ acinclude.m4
@@ -284,8 +284,6 @@ AC_DEFUN([LSH_GCC_ATTRIBUTES],
lsh_cv_c_attribute,
[ AC_TRY_COMPILE([
#include <stdlib.h>
-],
-[
static void foo(void) __attribute__ ((noreturn));
static void __attribute__ ((noreturn))
@@ -293,6 +291,8 @@ foo(void)
{
exit(1);
}
+],
+[
],
lsh_cv_c_attribute=yes,
lsh_cv_c_attribute=no)])