summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2016-04-21 21:33:35 +1000
committerMartin Thomson <martin.thomson@gmail.com>2016-04-21 21:33:35 +1000
commit88cc7d314b164ed585342786fc389512c967e1b5 (patch)
treea0e759e49927c07241a00def64827efcbca743cb
parentcd005a9be82506116a28191dc5e67651aaff3342 (diff)
downloadnss-hg-88cc7d314b164ed585342786fc389512c967e1b5.tar.gz
Bug 1254334 - SunOS doesn't seem to have NAME_MAX, a=bustage
-rw-r--r--lib/freebl/unix_rand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/freebl/unix_rand.c b/lib/freebl/unix_rand.c
index 956584920..e8754f0bc 100644
--- a/lib/freebl/unix_rand.c
+++ b/lib/freebl/unix_rand.c
@@ -1063,7 +1063,11 @@ ReadOneFile(int fileToRead)
DIR *fd = opendir(dir);
int resetCount = 0;
struct dirent *entry;
+#if defined(__sun)
+ char firstName[256];
+#else
char firstName[NAME_MAX + 1];
+#endif
const char *name = NULL;
int i;