Skip to content

Commit

Permalink
Build fixes for Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
extrowerk committed Jul 15, 2018
1 parent f01f732 commit 3f1910c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/enchive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
Expand Down Expand Up @@ -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 <fcntl.h>
#include <unistd.h>
#include <termios.h>
Expand Down Expand Up @@ -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 <unistd.h>

static FILE *
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 3f1910c

Please sign in to comment.