pkgsrc/net/lambdamoo/patches/patch-configure
dholland 1feae90395 Declare main correctly in test programs. gcc apparently doesn't care if
you attempt "int main(int argc, char *argv)" but clang does.
2011-09-04 23:55:00 +00:00

15 lines
381 B
Text

$NetBSD: patch-configure,v 1.1 2011/09/04 23:55:00 dholland Exp $
Use valid C in test programs.
--- configure~ 1997-03-03 03:45:05.000000000 +0000
+++ configure
@@ -600,7 +600,7 @@ CC="$CC $opt"
cat > conftest.c <<EOF
#include "confdefs.h"
-int main(int argc, char *argv) { void *ptr; exit(0); }
+int main(int argc, char **argv) { void *ptr; exit(0); }
EOF
eval $compile