Massage an unportable autoconf test so it won't erroneously fail on alpha;

fixes crashes on alpha down the road.
This commit is contained in:
naddy 2006-10-31 18:01:01 +00:00
parent 64341b9273
commit b8d92ab119
2 changed files with 19 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.56 2006/10/25 16:27:04 mbalmer Exp $
# $OpenBSD: Makefile,v 1.57 2006/10/31 18:01:01 naddy Exp $
COMMENT= "multi-screen window manager"
VERSION= 4.0.3
DISTNAME= screen-${VERSION}
PKGNAME= ${DISTNAME}p0
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-configure,v 1.1 2006/10/31 18:01:01 naddy Exp $
--- configure.orig Mon Oct 30 17:48:42 2006
+++ configure Mon Oct 30 17:49:09 2006
@@ -7186,10 +7186,12 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <stdarg.h>
int
main ()
{
-vsprintf(0,0,0);
+va_list ap;
+vsprintf(0,0,ap);
;
return 0;
}