hurd: Fix posix glob test

* posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
This commit is contained in:
Samuel Thibault 2018-01-06 22:19:13 +01:00
parent 107a35a575
commit 01c7e549b2
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
* sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise. * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
"-O2 -march=i686". "-O2 -march=i686".
* posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>

View File

@ -57,6 +57,9 @@ create_link (const char *base, const char *fname, char *linkname,
add_temp_file (linkname); add_temp_file (linkname);
} }
#ifndef PATH_MAX
# define PATH_MAX 1024
#endif
static char valid_link[PATH_MAX]; static char valid_link[PATH_MAX];
static char dangling_link[PATH_MAX]; static char dangling_link[PATH_MAX];
static char dangling_dir[PATH_MAX]; static char dangling_dir[PATH_MAX];