summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-11 04:26:50 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-11 04:26:50 +0000
commit016070bcbdaa959f9184312343d895a3edcbf6fc (patch)
tree5ce6173447c2e42f2864771f8af9a45de52214da /libc/unistd
parent6bc17e607f7b0856ee320979a8c2303173734988 (diff)
add back in code cut by previous commit to fix the pathconf test
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/pathconf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/unistd/pathconf.c b/libc/unistd/pathconf.c
index 8d6e7ba40..8e3c0a352 100644
--- a/libc/unistd/pathconf.c
+++ b/libc/unistd/pathconf.c
@@ -35,6 +35,11 @@ libc_hidden_proto(statfs)
libc_hidden_proto(stat)
+/* The Linux kernel headers mention this as a kind of generic value. */
+#ifndef LINK_MAX
+# define LINK_MAX 127
+#endif
+
/* Get file-specific information about PATH. */
long int
pathconf (const char *path, int name)