This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[hurd,commited] hurd: Fix posix glob test
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: libc-alpha at sourceware dot org
- Cc: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Date: Sat, 6 Jan 2018 22:22:08 +0100
- Subject: [hurd,commited] hurd: Fix posix glob test
- Authentication-results: sourceware.org; auth=none
* posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
---
ChangeLog | 1 +
posix/tst-glob_symlinks.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 7e02feed9a..8bc25a4f87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
"-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>
diff --git a/posix/tst-glob_symlinks.c b/posix/tst-glob_symlinks.c
index 0f3478d3d0..df3baa8757 100644
--- a/posix/tst-glob_symlinks.c
+++ b/posix/tst-glob_symlinks.c
@@ -57,6 +57,9 @@ create_link (const char *base, const char *fname, char *linkname,
add_temp_file (linkname);
}
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
static char valid_link[PATH_MAX];
static char dangling_link[PATH_MAX];
static char dangling_dir[PATH_MAX];
--
2.15.1