Print this page
re #13613 rb4516 Tunables needs volatile keyword

@@ -20,10 +20,13 @@
  */
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+ */
 
 /*
  * The sole purpose of this file is to document our violations of the DDI
  * in Solaris and to get ddict to run on the data services stack.
  * Definitions and declarations contained in this file are never compiled

@@ -153,11 +156,11 @@
 #define UL_GETFSIZE     0
 #define USHRT_MAX       0
 
 typedef u_longlong_t    rlim64_t;
 int ulimit() { }
-int maxphys;
+volatile int maxphys;
 
 #define AT_SIZE 0
 #define VBLK    0
 #define VCHR    0
 #define VREG    0