pkgsrc/devel/mico/patches/patch-ab
2014-11-10 18:01:01 +00:00

588 lines
11 KiB
Text

$NetBSD: patch-ab,v 1.3 2014/11/10 18:01:01 joerg Exp $
--- configure.orig 2006-01-21 15:12:08.000000000 +0000
+++ configure
@@ -1256,7 +1256,7 @@ myexec=$exec_prefix
test "x$myprefix" = xNONE && myprefix=$ac_default_prefix
test "x$myexec" = xNONE && myexec=${myprefix}
ABSEXECDIR=$myexec
-ABSSHRDDIR=$myprefix
+ABSSHRDDIR=$myprefix/share
cat >> confdefs.h <<EOF
#define ABSEXECDIR "$myexec"
EOF
@@ -1452,7 +1452,7 @@ cat > conftest.$ac_ext << EOF
#line 1453 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
@@ -7573,7 +7573,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7616,7 +7616,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7659,7 +7659,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7702,7 +7702,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7745,7 +7745,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7788,7 +7788,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7831,7 +7831,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7874,7 +7874,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7917,7 +7917,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -7960,7 +7960,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8003,7 +8003,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8046,7 +8046,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8091,7 +8091,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8134,7 +8134,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8177,7 +8177,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8220,7 +8220,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8263,7 +8263,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8306,7 +8306,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8349,7 +8349,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8392,7 +8392,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8435,7 +8435,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8478,7 +8478,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8521,7 +8521,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8564,7 +8564,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8609,7 +8609,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8652,7 +8652,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8695,7 +8695,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8738,7 +8738,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8781,7 +8781,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8824,7 +8824,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8867,7 +8867,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8910,7 +8910,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8953,7 +8953,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -8996,7 +8996,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9039,7 +9039,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9082,7 +9082,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9127,7 +9127,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9170,7 +9170,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9213,7 +9213,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9256,7 +9256,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9299,7 +9299,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9342,7 +9342,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9385,7 +9385,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9428,7 +9428,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9471,7 +9471,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9514,7 +9514,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9557,7 +9557,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9600,7 +9600,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9655,7 +9655,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9698,7 +9698,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9741,7 +9741,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9784,7 +9784,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9827,7 +9827,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9870,7 +9870,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9913,7 +9913,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9956,7 +9956,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -9999,7 +9999,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -10042,7 +10042,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -10085,7 +10085,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -10128,7 +10128,7 @@ else
#endif
#include <stdio.h>
#include <sys/types.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
@@ -10220,7 +10220,7 @@ else
#ifdef __cplusplus
#include <stdlib.h>
#endif
-main () {
+int main () {
/* Are we little or big endian? From Harbison&Steele. */
union
{
@@ -11634,13 +11634,13 @@ else
#include <stdlib.h>
#endif
-int
-main()
-{
#define OPENSSL_THREAD_DEFINES
#undef THREADS
#undef OPENSSL_THREADS
#include <openssl/opensslconf.h>
+int
+main()
+{
#if !defined(THREADS) && !defined(OPENSSL_THREADS)
//error You are trying to build multi-threaded MICO with single-threaded OpenSSL!
return 1;