pkgsrc/archivers/archangel/patches/patch-ac
sbd 8d1e7f357d The problem with gcc attributes is that they are being defined away in
config.h because the AC_C___ATTRIBUTE__ test is broken.

(Note: the secound argument to AC_TRY_COMPILE is what goes in main).
2012-01-28 04:37:36 +00:00

36 lines
713 B
Text

$NetBSD: patch-ac,v 1.2 2012/01/28 04:37:36 sbd Exp $
--- configure.orig 2005-07-31 22:23:59.000000000 +0000
+++ configure
@@ -3157,7 +3157,8 @@ done
-for ac_header in sys/bitypes.h sys/param.h sys/endian.h sys/wait.h machine/endian.h
+
+for ac_header in sys/bitypes.h sys/param.h sys/endian.h sys/wait.h machine/endian.h sys/xattr.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -3597,10 +3598,6 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <stdlib.h>
-int
-main ()
-{
-
static void foo(void) __attribute__ ((noreturn));
static void
@@ -3609,6 +3606,10 @@ foo(void)
exit(1);
}
+int
+main ()
+{
+
;
return 0;
}