|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] Fix ioemu compile on Solaris
 
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191313763 -3600
# Node ID fe94b7818c4e32a7f5fd7b71dd74ebc998d14258
# Parent  1a04c799e20ea14be95e098358acf298d08acb79
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@xxxxxxx>
---
 tools/ioemu/vl.c |    2 ++
 1 files changed, 2 insertions(+)
diff -r 1a04c799e20e -r fe94b7818c4e tools/ioemu/vl.c
--- a/tools/ioemu/vl.c  Tue Oct 02 09:29:00 2007 +0100
+++ b/tools/ioemu/vl.c  Tue Oct 02 09:29:23 2007 +0100
@@ -7102,6 +7102,7 @@ int main(int argc, char **argv)
     char qemu_dm_logfilename[128];
     const char *direct_pci = NULL;
 
+#ifndef __sun__
     /* Maximise rlimits. Needed where default constraints are tight (*BSD). */
     if (getrlimit(RLIMIT_STACK, &rl) != 0) {
        perror("getrlimit(RLIMIT_STACK)");
@@ -7125,6 +7126,7 @@ int main(int argc, char **argv)
     rl.rlim_max = RLIM_INFINITY;
     if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0)
        perror("setrlimit(RLIMIT_MEMLOCK)");
+#endif
 
     /* Ensure that SIGUSR2 is blocked by default when a new thread is created,
        then only the threads that use the signal unblock it -- this fixes a
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] Fix ioemu compile on Solaris,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |