Message ID | 20161230132108.23805-1-barbieri@profusion.mobi |
---|---|
State | Superseded |
Headers | show |
damn, ignore the 1/4 of the subject... I have other 3 pending patches and forgot to disable numbers, those others will be submitted later. On Fri, Dec 30, 2016 at 11:21 AM, Gustavo Sverzut Barbieri <barbieri@profusion.mobi> wrote: > Add missing defines so eudev builds for older kernels such as 2.6 > > Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi> > Reviewed-by: Romain Naour <romain.naour@gmail.com> > --- > .../0002-missing-defines-for-old-kernels.patch | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patch > > diff --git a/package/eudev/0002-missing-defines-for-old-kernels.patch b/package/eudev/0002-missing-defines-for-old-kernels.patch > new file mode 100644 > index 000000000..f2a3eff57 > --- /dev/null > +++ b/package/eudev/0002-missing-defines-for-old-kernels.patch > @@ -0,0 +1,22 @@ > +build with older kernels. > + > +Add missing defines so eudev builds for older kernels such as 2.6 > + > +Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi> > + > +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 > ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000 > +@@ -33,6 +33,13 @@ > + #include "udev.h" > + #include "util.h" > + > ++#ifndef BTN_TRIGGER_HAPPY > ++#define BTN_TRIGGER_HAPPY 0x2c0 > ++#endif > ++#ifndef INPUT_PROP_MAX > ++#define INPUT_PROP_MAX 0x1f > ++#endif > ++ > + /* we must use this kernel-compatible implementation */ > + #define BITS_PER_LONG (sizeof(unsigned long) * 8) > + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) > -- > 2.11.0 >
diff --git a/package/eudev/0002-missing-defines-for-old-kernels.patch b/package/eudev/0002-missing-defines-for-old-kernels.patch new file mode 100644 index 000000000..f2a3eff57 --- /dev/null +++ b/package/eudev/0002-missing-defines-for-old-kernels.patch @@ -0,0 +1,22 @@ +build with older kernels. + +Add missing defines so eudev builds for older kernels such as 2.6 + +Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi> + +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000 +@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif ++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)