Changeset 63556 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Aug 16, 2016 1:32:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r63369 r63556 94 94 # include <stdlib.h> 95 95 # include <string.h> 96 # include <sys/stat.h> 97 # define xf86stat stat 98 # define xf86stat_s stat 99 #else 100 # include <xf86_ansic.h> 96 # include <fcntl.h> 97 # include <unistd.h> 101 98 #endif 102 99 … … 739 736 { 740 737 ScrnInfoPtr pScrn; 741 struct xf86stat_s sstat;738 int drmFd; 742 739 743 740 TRACE_ENTRY(); 744 741 745 if (xf86stat("/dev/dri/card0", &sstat) == 0) 742 drmFd = open("/dev/dri/card0", O_RDWR, 0); 743 if (drmFd >= 0) 746 744 { 747 745 xf86Msg(X_INFO, "vboxvideo: kernel driver found, not loading.\n"); 746 close(drmFd); 748 747 return FALSE; 749 748 }
Note:
See TracChangeset
for help on using the changeset viewer.