From c486885ecda309759144ebad16ec4afd566e0bee Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 19:13:56 -0400 Subject: prevent prepocessor comparisons against empty tokens --- fnmatch.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fnmatch.h') diff --git a/fnmatch.h b/fnmatch.h index f98eed3..1b25d69 100644 --- a/fnmatch.h +++ b/fnmatch.h @@ -27,6 +27,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#if defined _XOPEN_SOURCE && _XOPEN_SOURCE - 1 < 0 +#undef _XOPEN_SOURCE +#define _XOPEN_SOURCE 400 +#endif + #if defined _XOPEN_SOURCE && !defined _POSIX_C_SOURCE # if (_XOPEN_SOURCE >= 700) # define _POSIX_C_SOURCE 200809L -- cgit v1.2.1