Skip to content

Commit

Permalink
GH-19 Use PATH_MAX in place of _XOPEN_PATH_MAX do to difference
Browse files Browse the repository at this point in the history
between NetBSD and Ubuntu.
  • Loading branch information
SirWumpus committed Aug 28, 2024
1 parent 038b3c1 commit e78e426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@

Expand Down
2 changes: 1 addition & 1 deletion src/post4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e78e426

Please sign in to comment.