summaryrefslogtreecommitdiff
path: root/lib/libmp
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2003-01-28 23:03:15 +0000
committerMark Murray <markm@FreeBSD.org>2003-01-28 23:03:15 +0000
commitcb9c19ff8675deb24726df102988d19bd5200585 (patch)
treec43c7b3c1950cc2b29ce8424816a9c5fe53f6083 /lib/libmp
parentab643b4d66501e8d5358a7a45a0da24a03191dbd (diff)
Notes
Diffstat (limited to 'lib/libmp')
-rw-r--r--lib/libmp/Makefile2
-rw-r--r--lib/libmp/mp.h2
-rw-r--r--lib/libmp/mpasbn.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/lib/libmp/Makefile b/lib/libmp/Makefile
index 7d8c9cb2de1b..6bb7f79c45c7 100644
--- a/lib/libmp/Makefile
+++ b/lib/libmp/Makefile
@@ -7,6 +7,6 @@ INCS= mp.h
SRCS= mpasbn.c
WARNS?= 2
-CFLAGS+= -ansi -pedantic
+CFLAGS+= -I${.CURDIR}/../../crypto
.include <bsd.lib.mk>
diff --git a/lib/libmp/mp.h b/lib/libmp/mp.h
index 056c6ba4c648..4c2c94d05fc8 100644
--- a/lib/libmp/mp.h
+++ b/lib/libmp/mp.h
@@ -3,7 +3,9 @@
#ifndef _MP_H_
#define _MP_H_
+#ifndef HEADER_BN_H_
#include <openssl/bn.h>
+#endif
typedef struct _mint {
BIGNUM *bn;
diff --git a/lib/libmp/mpasbn.c b/lib/libmp/mpasbn.c
index 0185e1f18514..726e2f179dc6 100644
--- a/lib/libmp/mpasbn.c
+++ b/lib/libmp/mpasbn.c
@@ -79,10 +79,10 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <string.h>
-#include <openssl/bn.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
+#include "openssl/crypto/bn/bn_lcl.h"
#include "mp.h"
#define MPERR(s) do { warn s; abort(); } while (0)