Prior to this commit _POSIX_C_SOURCE was defined first in which is included by cgo first1. By default sets _POSIX_C_SOURCE=199506L, which conflicts with tree-sitter's setting of _POSIX_C_SOURCE=200112L. After this commit we use a CFLAG to set the feature macro before any files are included.
Hm this is an unideal solution but totally fine (go moment) - I noticed this in a machine of mine as well but chalked it up to a bad environment or something since GH's Linux CI machines were happy anyways.
Prior to this commit _POSIX_C_SOURCE was defined first in which is included by cgo first1. By default sets _POSIX_C_SOURCE=199506L, which conflicts with tree-sitter's setting of _POSIX_C_SOURCE=200112L. After this commit we use a CFLAG to set the feature macro before any files are included.
Fixes: #7