GNOME Bugzilla – Bug 730570
dvbsrc: fix building with newer kernel headers
Last modified: 2014-05-22 11:14:24 UTC
Created attachment 276975 [details] [review] patch c400eef3772b7dc470eefae02a1288c2b125e25c introduced some defines to handle older kernel headers. However, the check is done before the corresponding kernel header (dvb/frontend.h) is included. As a result the macros are always defined with results in 'redefined' errors with newer kernel headers. Move the check after the include to fix this. Note: this is only compile-time tested.
whoops, nice catch :) commit c1db46ffc61edd3489667012e354f5ed106a2d43 Author: Michael Olbrich <m.olbrich@pengutronix.de> Date: Thu May 22 12:23:57 2014 +0200 dvbsrc: fix building with newer kernel headers c400eef3772b7dc470eefae02a1288c2b125e25c introduced some defines to handle older kernel headers. However, the check is done before the corresponding kernel header (dvb/frontend.h) is included. As a result the macros are always defined with results in 'redefined' errors with newer kernel headers. Move the check after the include to fix this. https://bugzilla.gnome.org/show_bug.cgi?id=730570