Fix build errors for macOS

PR #1960 <https://github.com/Genymobile/scrcpy/pull/1960>

Signed-off-by: Romain Vimont <rom@rom1v.com>
pull/1751/merge
jianzhang4 3 years ago 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"

Loading…
Cancel
Save