mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 13:20:32 -04:00
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
20 lines
394 B
Text
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)])
|