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:
committed by
Romain Vimont
parent
47c8971267
commit
d6078cf202
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user