about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTodd T. Fries <todd@fries.net>2011-10-04 10:19:54 -0500
committerTodd T. Fries <todd@fries.net>2011-10-04 10:19:54 -0500
commit6daaad9b216cad2d262e8a4e7e5a08501236f34e (patch)
treec6e6c3136fed1ad0eac566054c0b864e615b4257
parente1729124eb11a6c9070dd036989f61690b38458d (diff)
downloadxombrero-6daaad9b216cad2d262e8a4e7e5a08501236f34e.tar.gz
In the insanity department, we have a function available in a library
with no mention in the headers. Fix by defining locally.
loonix libbsd and arc4random_buf, I'm lookin' at you.
-rw-r--r--xxxterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 473aa3d..4f22a24 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -46,6 +46,9 @@
 #include "linux/util.h"
 #include "linux/tree.h"
 #include <bsd/stdlib.h>
+# if !defined(sane_libbsd_headers)
+void arc4random_buf(void *, size_t);
+# endif
 #elif defined(__FreeBSD__)
 #include <libutil.h>
 #include "freebsd/util.h"