kobs-ng: test kernel version for redefines
authorSergey Alyoshin <alyoshin.s@gmail.com>
Wed, 23 Oct 2013 12:55:00 +0000 (16:55 +0400)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 27 Oct 2013 10:14:20 +0000 (11:14 +0100)
commitfb995444b9b2ce3a38fbb1723151e9a923835da9
tree7dc811f6337be74205fecc40aabb044d7f3a03b4
parent3c933c5e3095f8b33b16762a69d66e41e6913803
kobs-ng: test kernel version for redefines

kobs-ng failed to build with 2.6.36, because enum tested with #ifndef

mtd.c: In function 'mtd_open':
mtd.c:696:42: error: 'MTD_FILE_MODE_NORMAL' undeclared (first use in this
function)
mtd.c:696:42: note: each undeclared identifier is reported only once for each
function it appears in
mtd.c: In function 'mtd_set_ecc_mode':
mtd.c:896:43: error: 'MTD_FILE_MODE_NORMAL' undeclared (first use in this
function)
mtd.c:914:43: error: 'MTD_FILE_MODE_RAW' undeclared (first use in this
function)

Do kernel version test before enum redefines.

Signed-off-by: Sergey Alyoshin <alyoshin.s@gmail.com>
Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/kobs-ng/kobs-ng-0001-fix-mtd-defines.patch