From e78e4269b75f8232e523f4602c033012180e9ccd Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Wed, 28 Aug 2024 10:22:47 -0400 Subject: [PATCH] GH-19 Use PATH_MAX in place of _XOPEN_PATH_MAX do to difference between NetBSD and Ubuntu. --- src/makefile.in | 2 +- src/post4.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makefile.in b/src/makefile.in index 3a78c6a..198c7bf 100755 --- a/src/makefile.in +++ b/src/makefile.in @@ -31,7 +31,7 @@ CC_E = @CC_E@ CC_O = @CC_O@ CPPFLAGS = @CPPFLAGS@ CWARNINGS = -Wno-unused-label -funsigned-char -Wno-unused-const-variable -CFLAGS = @CFLAGS@ -std=c11 ${CWARNINGS} ${DBG} +CFLAGS = @CFLAGS@ -std=c11 ${CPPFLAGS} ${CWARNINGS} ${DBG} LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ diff --git a/src/post4.c b/src/post4.c index 825f374..af2ef89 100755 --- a/src/post4.c +++ b/src/post4.c @@ -212,7 +212,7 @@ p4LoadFile(P4_Ctx *ctx, const char *file) { FILE *fp; int rc = P4_THROW_ENOENT; - char *p4path, *path, *next, filepath[_XOPEN_PATH_MAX]; + char *p4path, *path, *next, filepath[PATH_MAX]; if (file == NULL || *file == '\0') { goto error0;