forked from jengelh/virtualbox
- Add patch file "Fix_for_server_1.19.patch" to support xorg-x11-server v. 1.19.0.
The spec file now interrogates the rpm for the server and conditionally applies the patch, thus both versions build OK. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=297
This commit is contained in:
committed by
Git OBS Bridge
parent
10c3b9cf5c
commit
5abb7f5639
66
Fix_for_server_1.19.patch
Normal file
66
Fix_for_server_1.19.patch
Normal file
@@ -0,0 +1,66 @@
|
||||
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
||||
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
|
||||
@@ -52,6 +52,8 @@
|
||||
#ifndef _VBOXVIDEO_H_
|
||||
#define _VBOXVIDEO_H_
|
||||
|
||||
+#include <bits/sigset.h>
|
||||
+typedef __sigset_t sigset_t;
|
||||
#include <VBox/VBoxVideoGuest.h>
|
||||
#include <VBox/VBoxVideo.h>
|
||||
#include "version-generated.h"
|
||||
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/helpers.c
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/helpers.c
|
||||
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/helpers.c
|
||||
@@ -82,7 +82,7 @@ void vbvxSetIntegerPropery(ScrnInfoPtr p
|
||||
|
||||
property_name = MakeAtom(pszName, strlen(pszName), TRUE);
|
||||
VBVXASSERT(property_name != BAD_RESOURCE, ("Failed to set atom \"%s\"\n", pszName));
|
||||
- ChangeWindowProperty(ROOT_WINDOW(pScrn), property_name, XA_INTEGER, 32, PropModeReplace, cData, paData, fSendEvent);
|
||||
+ dixChangeWindowProperty(serverClient, ROOT_WINDOW(pScrn), property_name, XA_INTEGER, 32, PropModeReplace, cData, paData, fSendEvent);
|
||||
}
|
||||
|
||||
void vbvxReprobeCursor(ScrnInfoPtr pScrn)
|
||||
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
||||
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
|
||||
@@ -1229,8 +1229,7 @@ static Bool VBOXScreenInit(ScreenPtr pSc
|
||||
updateGraphicsCapability(pScrn, TRUE);
|
||||
|
||||
/* Register block and wake-up handlers for getting new screen size hints. */
|
||||
- RegisterBlockAndWakeupHandlers(vboxBlockHandler, (WakeupHandlerProcPtr)NoopDDA, (pointer)pScrn);
|
||||
-
|
||||
+ RegisterBlockAndWakeupHandlers(vboxBlockHandler, (ServerWakeupHandlerProcPtr)NoopDDA, (pointer)pScrn);
|
||||
/* software cursor */
|
||||
miDCInitialize(pScreen, xf86GetPointerScreenFuncs());
|
||||
|
||||
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/pointer.c
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/pointer.c
|
||||
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/pointer.c
|
||||
@@ -15,6 +15,8 @@
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
||||
*/
|
||||
|
||||
+#include <bits/sigset.h>
|
||||
+typedef __sigset_t sigset_t;
|
||||
#include <VBox/VBoxGuestLib.h>
|
||||
|
||||
#ifndef PCIACCESS
|
||||
Index: VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/edid.c
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.10.orig/src/VBox/Additions/x11/vboxvideo/edid.c
|
||||
+++ VirtualBox-5.1.10/src/VBox/Additions/x11/vboxvideo/edid.c
|
||||
@@ -44,6 +44,8 @@
|
||||
* Dave Airlie <airlied@redhat.com>
|
||||
*/
|
||||
|
||||
+#include <bits/sigset.h>
|
||||
+typedef __sigset_t sigset_t;
|
||||
#include <misc.h>
|
||||
#include <xf86DDC.h>
|
||||
#include <xf86Crtc.h>
|
Reference in New Issue
Block a user