diff --git a/config.h b/config.h index 13da449..cda7e43 100644 --- a/config.h +++ b/config.h @@ -24,7 +24,7 @@ #endif #ifndef ENCHIVE_OPTION_AGENT -# if defined(__unix__) || defined(__APPLE__) +# if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) # define ENCHIVE_OPTION_AGENT 1 # else # define ENCHIVE_OPTION_AGENT 0 diff --git a/src/enchive.c b/src/enchive.c index dfb12aa..5e3c4b3 100644 --- a/src/enchive.c +++ b/src/enchive.c @@ -324,7 +324,7 @@ agent_run(const uint8_t *key, const uint8_t *id) */ static char *storage_directory(char *file); -#if defined(__unix__) || defined(__APPLE__) +#if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) #include #include #include @@ -434,7 +434,7 @@ get_passphrase_dumb(char *buf, size_t len, char *prompt) buf[passlen - 1] = 0; } -#if defined(__unix__) || defined(__APPLE__) +#if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) #include #include #include @@ -607,7 +607,7 @@ get_passphrase(char *buf, size_t len, char *prompt) */ static FILE *secure_creat(const char *file); -#if defined(__unix__) || defined(__APPLE__) +#if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) #include static FILE * @@ -716,7 +716,7 @@ key_derive(const char *passphrase, uint8_t *buf, int iexp, const uint8_t *salt) */ static void secure_entropy(void *buf, size_t len); -#if defined(__unix__) || defined(__APPLE__) +#if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__) static void secure_entropy(void *buf, size_t len) {