提交 d6078cf2 编写于 作者: J jianzhang4 提交者: Romain Vimont

Fix build errors for macOS

PR #1960 <https://github.com/Genymobile/scrcpy/pull/1960>
Signed-off-by: NRomain Vimont <rom@rom1v.com>
上级 47c89712
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册