diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-08-06 12:57:48 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-08-06 13:02:54 +0200 |
commit | e6f348c72809abb38667448dd6f7fcf12db432a3 (patch) | |
tree | b47213bf4bacc7d46aa6dabed54bfa309e1b9aae /util.h | |
parent | b0dd38e9570cdf9125786639e9568ad4b5e8befa (diff) |
add USE_PLEDGE, remove pledge dummy function
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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); |