From e7dac93054d710538dd8347abe91db408449a544 Mon Sep 17 00:00:00 2001 From: Hiroki Tagato Date: Wed, 24 Nov 2021 16:45:20 +0900 Subject: [PATCH] Include pthread.h for pthread_t This change fixes build on FreeBSD 12. --- src/keymapping.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/keymapping.h b/src/keymapping.h index fb85336..3a8c3ab 100644 --- a/src/keymapping.h +++ b/src/keymapping.h @@ -12,6 +12,10 @@ #include #include "../deps/chromium/keyboard_codes.h" +#if defined(__unix__) +#include +#endif + #define CHECK_OK(x) if (x != napi_ok) return NULL namespace vscode_keyboard { @@ -57,4 +61,4 @@ napi_value napi_fetch_boolean(napi_env env, bool value); } // namespace vscode_keyboard -#endif // KEYMAPPING_H_ \ No newline at end of file +#endif // KEYMAPPING_H_