summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 12:57:48 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 13:02:54 +0200
commite6f348c72809abb38667448dd6f7fcf12db432a3 (patch)
treeb47213bf4bacc7d46aa6dabed54bfa309e1b9aae /util.h
parentb0dd38e9570cdf9125786639e9568ad4b5e8befa (diff)
add USE_PLEDGE, remove pledge dummy function
Diffstat (limited to 'util.h')
-rw-r--r--util.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/util.h b/util.h
index 089c001..b731ce6 100644
--- a/util.h
+++ b/util.h
@@ -1,5 +1,8 @@
#include <stdint.h>
#include <time.h>
+#ifdef USE_PLEDGE
+#include <unistd.h>
+#endif
#undef strlcat
size_t strlcat(char *, const char *, size_t);
@@ -37,11 +40,5 @@ void printutf8pad(FILE *, const char *, size_t, int);
int strtotime(const char *, time_t *);
void xmlencode(const char *, FILE *);
-#ifdef USE_PLEDGE
-#include <unistd.h>
-#else
-int pledge(const char *, const char *[]);
-#endif
-
#define ROT32(x, y) ((x << y) | (x >> (32 - y)))
uint32_t murmur3_32(const char *, uint32_t, uint32_t);