ia64/xen-unstable

changeset 16035:fe94b7818c4e

Fix ioemu compile on Solaris
Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits.
Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir@xensource.com>
date Tue Oct 02 09:29:23 2007 +0100 (2007-10-02)
parents 1a04c799e20e
children 016cb0f193ba
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Tue Oct 02 09:29:00 2007 +0100
     1.2 +++ b/tools/ioemu/vl.c	Tue Oct 02 09:29:23 2007 +0100
     1.3 @@ -7102,6 +7102,7 @@ int main(int argc, char **argv)
     1.4      char qemu_dm_logfilename[128];
     1.5      const char *direct_pci = NULL;
     1.6  
     1.7 +#ifndef __sun__
     1.8      /* Maximise rlimits. Needed where default constraints are tight (*BSD). */
     1.9      if (getrlimit(RLIMIT_STACK, &rl) != 0) {
    1.10         perror("getrlimit(RLIMIT_STACK)");
    1.11 @@ -7125,6 +7126,7 @@ int main(int argc, char **argv)
    1.12      rl.rlim_max = RLIM_INFINITY;
    1.13      if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0)
    1.14         perror("setrlimit(RLIMIT_MEMLOCK)");
    1.15 +#endif
    1.16  
    1.17      /* Ensure that SIGUSR2 is blocked by default when a new thread is created,
    1.18         then only the threads that use the signal unblock it -- this fixes a