diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2016-04-21 21:33:35 +1000 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2016-04-21 21:33:35 +1000 |
commit | 88cc7d314b164ed585342786fc389512c967e1b5 (patch) | |
tree | a0e759e49927c07241a00def64827efcbca743cb | |
parent | cd005a9be82506116a28191dc5e67651aaff3342 (diff) | |
download | nss-hg-88cc7d314b164ed585342786fc389512c967e1b5.tar.gz |
Bug 1254334 - SunOS doesn't seem to have NAME_MAX, a=bustage
-rw-r--r-- | lib/freebl/unix_rand.c | 4 |
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; |