summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-03-04 12:21:26 +0100
committerVolker Lendecke <vl@samba.org>2009-03-04 12:28:39 +0100
commitddc1864fb22dfcd86e3a8688cfd12e0dccd835da (patch)
treeee2dd0c92ed12da6e7a422fb976ad06c30737343 /source3
parente8484e01ed6c3893f89abeec5f7a2d214d77c576 (diff)
downloadsamba-ddc1864fb22dfcd86e3a8688cfd12e0dccd835da.tar.gz
samba-ddc1864fb22dfcd86e3a8688cfd12e0dccd835da.tar.bz2
samba-ddc1864fb22dfcd86e3a8688cfd12e0dccd835da.zip
Attempt to fix the build on IRIX
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 89c706d874..f49a1bc4c9 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4668,7 +4668,9 @@ static int max_open_files(void)
#if (defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE))
{
- struct rlimit rl = {};
+ struct rlimit rl;
+
+ ZERO_STRUCT(rl);
if (getrlimit(RLIMIT_NOFILE, &rl) == 0)
rlimit_max = rl.rlim_cur;