is not allowed here" doesn't get triggered when running (this was an earlier found port from the initial grep over unpacked ports source rather than from the build-time check) and the relevant file doesn't get installed. however it confused me a lot when I was trying to port over this patch to another port which borrowed this and *does* use it.
24 lines
457 B
Plaintext
24 lines
457 B
Plaintext
$OpenBSD: patch-acinclude_m4,v 1.2 2017/09/29 23:36:03 sthen Exp $
|
|
|
|
Index: acinclude.m4
|
|
--- acinclude.m4.orig
|
|
+++ acinclude.m4
|
|
@@ -284,8 +284,7 @@ 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))
|
|
@@ -294,6 +293,7 @@ foo(void)
|
|
exit(1);
|
|
}
|
|
],
|
|
+[],
|
|
lsh_cv_c_attribute=yes,
|
|
lsh_cv_c_attribute=no)])
|
|
|