summaryrefslogtreecommitdiff
path: root/lang/mawk/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-23 15:36:25 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-23 15:36:25 +0000
commita073163c9354235a89808338ddb535d8a49f1dfc (patch)
tree461f04a657f77c54bd931ca01109c1a2bd6c2ec5 /lang/mawk/patches
parent07d38ce26fb69e6d1292d4df578dc3393fc79cc5 (diff)
downloadpkgsrc-a073163c9354235a89808338ddb535d8a49f1dfc.tar.gz
Fix GCC 3.4+: floor called in configure should take an argument.
Diffstat (limited to 'lang/mawk/patches')
-rw-r--r--lang/mawk/patches/patch-ad16
1 files changed, 10 insertions, 6 deletions
diff --git a/lang/mawk/patches/patch-ad b/lang/mawk/patches/patch-ad
index 1dc861880a2..40e9bda0e3f 100644
--- a/lang/mawk/patches/patch-ad
+++ b/lang/mawk/patches/patch-ad
@@ -1,17 +1,21 @@
-$NetBSD: patch-ad,v 1.2 2005/06/30 05:57:38 minskim Exp $
+$NetBSD: patch-ad,v 1.3 2005/12/23 15:36:25 joerg Exp $
--- configure.orig 1996-09-04 23:43:01.000000000 +0000
+++ configure
-@@ -529,7 +529,7 @@ cat > conftest.$ac_ext <<EOF
+@@ -528,9 +528,10 @@ cat > conftest.$ac_ext <<EOF
+ #include "confdefs.h"
int main() { return 0; }
++double testval;
int t() {
-log()
-+floor()
- ; return 0; }
+-; return 0; }
++floor(testval);
++return 0; }
EOF
if eval $ac_link; then
-@@ -549,18 +549,18 @@ if eval "test \"`echo '$ac_cv_lib_'m`\"
+ rm -rf conftest*
+@@ -549,18 +550,18 @@ if eval "test \"`echo '$ac_cv_lib_'m`\"
else
echo "$ac_t""no" 1>&6
# maybe don't need separate math library
@@ -34,7 +38,7 @@ $NetBSD: patch-ad,v 1.2 2005/06/30 05:57:38 minskim Exp $
int main() { return 0; }
int t() {
-@@ -568,32 +568,32 @@ int t() {
+@@ -568,32 +569,32 @@ int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */