summaryrefslogtreecommitdiff
path: root/pkg/expat
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-07-15 00:44:53 -0700
committerMichael Forney <mforney@mforney.org>2017-07-15 00:44:53 -0700
commitbd078805e604ddfbf9624e349c79ce3ba1abffdd (patch)
tree5a364094d4374fdeab73a9f2a34054cd1ebea111 /pkg/expat
parent1b0aa2faa5bc1cc697f3506b70aff92db3179959 (diff)
expat: Use arc4random_buf
Diffstat (limited to 'pkg/expat')
-rw-r--r--pkg/expat/expat_config.h2
-rw-r--r--pkg/expat/gen.rc4
2 files changed, 4 insertions, 2 deletions
diff --git a/pkg/expat/expat_config.h b/pkg/expat/expat_config.h
index 60db771b..b54cced4 100644
--- a/pkg/expat/expat_config.h
+++ b/pkg/expat/expat_config.h
@@ -1,7 +1,7 @@
#include <config-posix.h>
#define BYTEORDER 1234
-/* #undef HAVE_ARC4RANDOM_BUF */
+#define HAVE_ARC4RANDOM_BUF 1
#define HAVE_BCOPY 1
#define HAVE_GETPAGESIZE 1
/* #undef HAVE_GETRANDOM */
diff --git a/pkg/expat/gen.rc b/pkg/expat/gen.rc
index e1bb03c8..ee0b5d82 100644
--- a/pkg/expat/gen.rc
+++ b/pkg/expat/gen.rc
@@ -1,9 +1,11 @@
cflags\
-D HAVE_EXPAT_CONFIG_H\
+ -isystem pkg/openbsd/include\
-I include\
-I '$dir'
-lib libexpat.a expat/lib/^(xmlparse.c xmltok.c xmlrole.c)
+lib libexpat.a expat/lib/^(xmlparse.c xmltok.c xmlrole.c)\
+ '$builddir'/pkg/openbsd/libbsd.a.d
hdrs=(expat.h expat_external.h)
for(hdr in $hdrs) build '$outdir'/include/$hdr copy '$srcdir'/expat/lib/$hdr