Skip to content

Commit

Permalink
Fix build errors for macOS
Browse files Browse the repository at this point in the history
PR #1960 <#1960>

Signed-off-by: Romain Vimont <[email protected]>
  • Loading branch information
jianzhang4 authored and rom1v committed Dec 12, 2020
1 parent 47c8971 commit d6078cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/sys/unix/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// modern glibc will complain without this
#define _DEFAULT_SOURCE

#ifdef __APPLE__
# define _DARWIN_C_SOURCE // for strdup(), strtok_r(), memset_pattern4()
#endif

#include "command.h"

#include "config.h"
Expand Down

0 comments on commit d6078cf

Please sign in to comment.