projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
018c479
)
scandir: Fix link error on Solaris 8.
author
Bruno Haible
<bruno@clisp.org>
Fri, 19 Mar 2010 23:20:36 +0000
(
00:20
+0100)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 19 Mar 2010 23:20:36 +0000
(
00:20
+0100)
ChangeLog
patch
|
blob
|
history
lib/scandir.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index bac7b1a831aa7a47d9988f2d30b8324c1cdf0ea3..c2e21c9e1f4ee734c760f15b89e97ec2e4bc01ef 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,9
@@
+2010-03-19 Bruno Haible <bruno@clisp.org>
+
+ scandir: Fix link error on Solaris 8.
+ * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
+ macros.
+
2010-03-19 Bruno Haible <bruno@clisp.org>
getusershell: Fix documentation.
diff --git
a/lib/scandir.c
b/lib/scandir.c
index 498134f2f379e75de5f533e736131f58a719d4a2..63f70ad9ce4164c47f46a5757f1c561f2da018ba 100644
(file)
--- a/
lib/scandir.c
+++ b/
lib/scandir.c
@@
-33,6
+33,13
@@
#undef select
+#ifndef _D_EXACT_NAMLEN
+# define _D_EXACT_NAMLEN(d) strlen ((d)->d_name)
+#endif
+#ifndef _D_ALLOC_NAMLEN
+# define _D_ALLOC_NAMLEN(d) (_D_EXACT_NAMLEN (d) + 1)
+#endif
+
#if _LIBC
# ifndef SCANDIR
# define SCANDIR scandir