pkgsrc-ng/lang/moscow_ml/patches/patch-config_auto-aux_hasgot
2016-11-18 22:39:22 +01:00

15 lines
423 B
Plaintext

$NetBSD: patch-config_auto-aux_hasgot,v 1.2 2015/12/29 23:34:52 dholland Exp $
Fix strerror detection.
--- config/auto-aux/hasgot.orig 2013-03-23 15:54:44.000000000 +0000
+++ config/auto-aux/hasgot
@@ -1,5 +1,6 @@
#!/bin/sh
-(echo "main() {"
+(for f in $*; do echo "extern int $f();"; done
+ echo "main() {"
for f in $*; do echo " $f();"; done
echo "}") > hasgot.c
exec $cc -o tst hasgot.c > /dev/null 2>/dev/null