build: define _DARWIN_C_SOURCE

(cherry picked from commit 95ab17e444)
This commit is contained in:
Amaan Qureshi 2025-09-21 23:07:59 -04:00 committed by Amaan Qureshi
parent bb1634a544
commit 9275aeba08
6 changed files with 6 additions and 2 deletions

View file

@ -43,6 +43,7 @@ fn main() {
.include(&include_path)
.define("_POSIX_C_SOURCE", "200112L")
.define("_DEFAULT_SOURCE", None)
.define("_DARWIN_C_SOURCE", None)
.warnings(false)
.file(src_path.join("lib.c"))
.compile("tree-sitter");