compiler: Add C headers to avoid undefined symbol error in FreeBSD

pull/2270/head
sunnylcw 2019-10-09 19:28:30 +08:00 committed by Alexander Medvednikov
parent 909d3eed0a
commit 2403abe1ee
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ CommonCHeaders = '
#include <sys/wait.h> // os__wait uses wait on nix #include <sys/wait.h> // os__wait uses wait on nix
#endif #endif
#ifdef __FreeBSD__
#include <sys/types.h>
#include <sys/wait.h> // os__wait uses wait on nix
#endif
#define EMPTY_STRUCT_DECLARATION #define EMPTY_STRUCT_DECLARATION
#define EMPTY_STRUCT_INITIALIZATION 0 #define EMPTY_STRUCT_INITIALIZATION 0
// Due to a tcc bug, the length of an array needs to be specified, but GCC crashes if it is... // Due to a tcc bug, the length of an array needs to be specified, but GCC crashes if it is...