diff options
author | Jakob Kaivo <jkk@ung.org> | 2023-04-23 09:47:59 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2023-04-23 09:47:59 -0400 |
commit | e33af3b3e7ae0ecb806f94b2314106c24f048989 (patch) | |
tree | 6eb4845126ac2502781e859d5ba6f7c40d908d1d | |
parent | f8fe4917d052187e7e184ab769055b6cf85986c0 (diff) |
define PATH_MAX if it isn't already
-rw-r--r-- | cd.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -17,7 +17,6 @@ * */ -#include "sh.h" #include <errno.h> #include <limits.h> #include <stdio.h> @@ -25,6 +24,11 @@ #include <stddef.h> #include <string.h> #include <unistd.h> +#include "sh.h" + +#ifndef PATH_MAX +#define PATH_MAX _POSIX_PATH_MAX +#endif static void cd_in_cdpath(size_t n, char p[]) { |