diff options
Diffstat (limited to 'lang/moscow_ml/files/patch-config__auto_aux__hasgot')
-rw-r--r-- | lang/moscow_ml/files/patch-config__auto_aux__hasgot | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/moscow_ml/files/patch-config__auto_aux__hasgot b/lang/moscow_ml/files/patch-config__auto_aux__hasgot new file mode 100644 index 000000000000..496e137b5f6e --- /dev/null +++ b/lang/moscow_ml/files/patch-config__auto_aux__hasgot @@ -0,0 +1,13 @@ +--- config/auto-aux/hasgot.orig 2011-07-25 21:36:30.000000000 +0200 ++++ config/auto-aux/hasgot 2011-07-25 21:36:36.000000000 +0200 +@@ -1,5 +1,7 @@ + #!/bin/sh +-(echo "main() {" ++( ++ for f in $*; do echo "extern void $f(void);"; done ++ echo "int main() {" + for f in $*; do echo " $f();"; done +- echo "}") > hasgot.c +-exec $cc -o tst hasgot.c > /dev/null 2>/dev/null ++ echo "return 0; }") > hasgot.c ++exec $cc -o tst hasgot.c |