Changeset 21090 in vbox for trunk/src/VBox/Main/xpcom
- Timestamp:
- Jun 30, 2009 5:49:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xpcom/server_module.cpp
r15604 r21090 58 58 #include <string.h> 59 59 60 #if defined(RT_OS_SOLARIS) 61 # include <sys/systeminfo.h> 62 #endif 60 63 61 64 /// @todo move this to RT headers (and use them in MachineImpl.cpp as well) … … 138 141 rc = NS_ERROR_FAILURE); 139 142 143 #if defined(RT_OS_SOLARIS) && defined(VBOX_WITH_HARDENING) 144 char achKernArch[128]; 145 int cbKernArch = sysinfo (SI_ARCHITECTURE_K, achKernArch, sizeof(achKernArch)); 146 if (cbKernArch > 0) 147 { 148 sprintf(VBoxSVCPath, "/opt/VirtualBox/%s/%s", achKernArch, VBoxSVC_exe); 149 IsVBoxSVCPathSet = true; 150 } 151 else 152 rc = NS_ERROR_UNEXPECTED; 153 #else 140 154 strcpy (VBoxSVCPath, path.get()); 141 155 RTPathStripFilename (VBoxSVCPath); … … 143 157 144 158 IsVBoxSVCPathSet = true; 159 #endif 145 160 } 146 161 }
Note:
See TracChangeset
for help on using the changeset viewer.