Changeset 10656 in vbox for trunk/src/VBox/Additions/x11/xgraphics
- Timestamp:
- Jul 15, 2008 1:14:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xgraphics/vboxutils_68.c
r10562 r10656 30 30 #include "compiler.h" 31 31 #include "cursorstr.h" 32 33 #ifndef RT_OS_SOLARIS34 #include <asm/ioctl.h>35 #endif36 32 37 33 #include "vboxvideo_68.h" … … 114 110 115 111 TRACE_ENTRY (); 116 #ifdef RT_OS_SOLARIS 117 err = vbglR3GRPerform(hdrp); 118 if (RT_FAILURE(err)) 119 { 120 xf86DrvMsg(pScrn->scrnIndex, X_INFO, "VbglR3Perform failed. rc=%d\n", err); 121 err = -1; 122 } 112 #ifdef RT_OS_LINUX 113 err = ioctl (pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(hdrp->size), hdrp); 123 114 #else 124 /** @todo r=bird: Michael, I thought we decided a long time ago that all these should be replaced by VbglR3. I assume this is just a leftover... */ 125 err = ioctl (pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(0), hdrp); 115 /** 116 * @todo this should work fine on other platforms too, but it needs to be 117 * checked for each one. 118 */ 119 # error port me! 126 120 #endif 127 121 if (err < 0) … … 150 144 xf86DrvMsg(pScrn->scrnIndex, X_ERROR, 151 145 "Unable to determine whether the virtual machine supports mouse pointer integration - request initialization failed with return code %d\n", rc); 152 /** @todo r=bird: Michael, ditto. */ 146 #ifdef RT_OS_LINUX 153 147 if ( RT_SUCCESS(vrc) 154 148 && (ioctl(pVBox->vbox_fd, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(req)), (void*)&req) < 0)) 149 #else 150 # error port me! 151 #endif 155 152 { 156 153 vrc = VERR_FILE_IO_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.