summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-10-15 22:04:36 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-10-15 22:04:36 +0000
commit9702902e84d2a27ab9a157309f5276e8ff855a30 (patch)
tree5dfd1a19c67d7f5cfc7ab8ac6235a706ced8f231 /security
parentBROKEN on 5.x: does not compile (diff)
Fix compile problems on -CURRENT.
PR: ports/57586 Submitted by: Edwin Groothuis <edwin@mavetju.org> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=91365
Diffstat (limited to 'security')
-rw-r--r--security/sfs/Makefile4
-rw-r--r--security/sfs/files/patch-random_prime.C11
2 files changed, 11 insertions, 4 deletions
diff --git a/security/sfs/Makefile b/security/sfs/Makefile
index d72aeee1da1b..eba4ae16a98f 100644
--- a/security/sfs/Makefile
+++ b/security/sfs/Makefile
@@ -36,10 +36,6 @@ CONFIGURE_ARGS+=--with-gmp=${PREFIX}
CONFIGURE_ARGS+=--with-gmp=/usr
.endif
-.if ${OSVERSION} > 501000
-BROKEN= Does not compile
-.endif
-
MAN1= \
dirsearch.1 \
newaid.1 \
diff --git a/security/sfs/files/patch-random_prime.C b/security/sfs/files/patch-random_prime.C
new file mode 100644
index 000000000000..0797cc4f0eeb
--- /dev/null
+++ b/security/sfs/files/patch-random_prime.C
@@ -0,0 +1,11 @@
+--- crypt/random_prime.C.orig Tue Oct 14 23:24:18 2003
++++ crypt/random_prime.C Tue Oct 14 22:59:32 2003
+@@ -336,7 +336,7 @@
+ bigint t1, t2;
+ for (;;) {
+ next_weak ();
+- if (!tmp || (fermat2_test (tmp, &t1, &t2) == 2 && tmp.probab_prime (iter)))
++ if (!tmp || (fermat2_test (tmp, &t1, &t2) && tmp.probab_prime (iter)))
+ return tmp;
+ }
+ }