Fix build errors for macOS
PR #1960 <https://github.com/Genymobile/scrcpy/pull/1960> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
47c8971267
commit
d6078cf202
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue