- Timestamp:
- Jun 30, 2009 5:49:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r21079 r21090 486 486 VBoxSVCM_TEMPLATE = VBOXMAINCOMP 487 487 VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS) 488 ifdef VBOX_WITH_HARDENING 489 VBoxSVCM_DEFS += VBOX_WITH_HARDENING 490 endif 488 491 VBoxSVCM_INCS = \ 489 492 include \ -
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.