summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
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);