summaryrefslogtreecommitdiffstats
path: root/helper.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-10-28 14:12:54 +1000
committerDamien Miller <djm@mindrot.org>1999-10-28 14:12:54 +1000
commite413cba972feb60d3d4d104c0c93320435610d1b (patch)
treed712398819471c56f89ea3fc7a4fa5fb8db38690 /helper.c
parent062307657e30c9b970514eb53b4b743f9d571231 (diff)
Disabled code based on autoconf tests
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/helper.c b/helper.c
index c9aa51e4..6959535d 100644
--- a/helper.c
+++ b/helper.c
@@ -45,18 +45,15 @@
#include "rc4.h"
#include "xmalloc.h"
-
+#include "config.h"
#include "helper.h"
+#ifndef HAVE_ARC4RANDOM
+
void get_random_bytes(unsigned char *buf, int len);
static rc4_t *rc4 = NULL;
-void setproctitle(const char *fmt, ...)
-{
- /* FIXME */
-}
-
unsigned int arc4random(void)
{
unsigned int r;
@@ -105,4 +102,11 @@ void get_random_bytes(unsigned char *buf, int len)
exit(1);
}
}
+#endif /* !HAVE_ARC4RANDOM */
+#ifndef HAVE_SETPROCTITLE
+void setproctitle(const char *fmt, ...)
+{
+ /* FIXME */
+}
+#endif /* !HAVE_SETPROCTITLE */