Skip to content

Commit

Permalink
Fix for Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Aug 10, 2024
1 parent 8b58800 commit 0754a43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compat_arc4random.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ struct rand_state
};
typedef struct rand_state rand_state;

/* declaration required for mac os x */
/* kernel entropy */
extern int getentropy(void* buf, size_t n);

#define minimum(a, b) ((a) < (b) ? (a) : (b))

static inline void
Expand Down
4 changes: 4 additions & 0 deletions compats.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ struct rand_state
};
typedef struct rand_state rand_state;

/* declaration required for mac os x */
/* kernel entropy */
extern int getentropy(void* buf, size_t n);

#define minimum(a, b) ((a) < (b) ? (a) : (b))

static inline void
Expand Down

0 comments on commit 0754a43

Please sign in to comment.