fix build error for macOS.

This commit is contained in:
jianzhang4 2020-12-09 11:41:17 +08:00
parent 25aff00935
commit 8731b5f08d

View file

@ -5,6 +5,10 @@
// modern glibc will complain without this
#define _DEFAULT_SOURCE
#ifdef __APPLE__
#define _DARWIN_C_SOURCE /* for memset_pattern4() */
#endif
#include "command.h"
#include "config.h"