fb: Declare wfbFinishScreenInit, wfbScreenInit for !FB_ACCESS_WRAPPER
xf86-video-nouveau calls wfbScreenInit without defining FB_ACCESS_WRAPPER (which has other unintended side effects). Presently, this compiles and links because compilers still support implicit function declarations, but this is going to change fairly soon. This seems to be the most straightforward change to keep the driver building.
This commit is contained in:
parent
636c9aa359
commit
34a430a16e
2
fb/fb.h
2
fb/fb.h
|
@ -1027,7 +1027,6 @@ extern _X_EXPORT Bool
|
||||||
int dpiy, int width, /* pixel width of frame buffer */
|
int dpiy, int width, /* pixel width of frame buffer */
|
||||||
int bpp); /* bits per pixel of frame buffer */
|
int bpp); /* bits per pixel of frame buffer */
|
||||||
|
|
||||||
#ifdef FB_ACCESS_WRAPPER
|
|
||||||
extern _X_EXPORT Bool
|
extern _X_EXPORT Bool
|
||||||
wfbFinishScreenInit(ScreenPtr pScreen,
|
wfbFinishScreenInit(ScreenPtr pScreen,
|
||||||
void *pbits,
|
void *pbits,
|
||||||
|
@ -1049,7 +1048,6 @@ wfbScreenInit(ScreenPtr pScreen,
|
||||||
int width,
|
int width,
|
||||||
int bpp,
|
int bpp,
|
||||||
SetupWrapProcPtr setupWrap, FinishWrapProcPtr finishWrap);
|
SetupWrapProcPtr setupWrap, FinishWrapProcPtr finishWrap);
|
||||||
#endif
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
extern _X_EXPORT Bool
|
||||||
fbFinishScreenInit(ScreenPtr pScreen,
|
fbFinishScreenInit(ScreenPtr pScreen,
|
||||||
|
|
Loading…
Reference in New Issue