[PATCH xf86-video-nouveau] Fix building on older servers without xf86platformBus.h

Hans de Goede hdegoede at redhat.com
Fri Apr 11 07:57:45 PDT 2014


Hi,

On 04/11/2014 03:17 PM, Alexander E. Patrakov wrote:
> 11.04.2014 18:22, Hans de Goede wrote:
>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>> ---
>>   src/nv_type.h | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/src/nv_type.h b/src/nv_type.h
>> index 6ee36d7..bfc000e 100644
>> --- a/src/nv_type.h
>> +++ b/src/nv_type.h
>> @@ -8,7 +8,12 @@
>>   #include <stdbool.h>
>>   #include <stdint.h>
>>   #include "xf86Crtc.h"
>> +
>> +#ifdef XSERVER_PLATFORM_BUS
>>   #include "xf86platformBus.h"
>> +#else
>> +struct xf86_platform_device; /* To avoid needing lots of #ifdef-s */
>> +#endif
> 
> Can't we just always use the forward declaration?

Ah yes that would be better, v2 coming up.

Regards,

Hans


More information about the xorg-devel mailing list