diff options
author | Jesse Gilles <jgilles@multitech.com> | 2013-02-13 17:03:47 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2013-02-13 17:03:47 -0600 |
commit | 594e004677bd1e7481306a1fa1bf43761a6395b3 (patch) | |
tree | 516b8d7f4a3ba833a3b0e872b045934ee61de31a /multitech | |
parent | 3523df8f0e8106093a1d879ac62facdb67363435 (diff) |
sysvinit-2.86: fix compile with newer kernel headers
Diffstat (limited to 'multitech')
-rw-r--r-- | multitech/recipes/sysvinit/sysvinit/sysvinit-2.86-define_enoioctlcmd.patch | 14 | ||||
-rw-r--r-- | multitech/recipes/sysvinit/sysvinit_2.86.bbappend | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/multitech/recipes/sysvinit/sysvinit/sysvinit-2.86-define_enoioctlcmd.patch b/multitech/recipes/sysvinit/sysvinit/sysvinit-2.86-define_enoioctlcmd.patch new file mode 100644 index 0000000..49255bf --- /dev/null +++ b/multitech/recipes/sysvinit/sysvinit/sysvinit-2.86-define_enoioctlcmd.patch @@ -0,0 +1,14 @@ +Index: sysvinit-2.86/src/bootlogd.c +=================================================================== +--- sysvinit-2.86.orig/src/bootlogd.c 2013-01-24 14:18:49.561303519 -0600 ++++ sysvinit-2.86/src/bootlogd.c 2013-01-24 14:18:52.061303680 -0600 +@@ -228,6 +228,9 @@ + } + + #ifdef TIOCGDEV ++# ifndef ENOIOCTLCMD ++# define ENOIOCTLCMD 515 ++# endif + if (ioctl(0, TIOCGDEV, &kdev) == 0) + return findtty(res, rlen, (dev_t)kdev); + if (errno != ENOIOCTLCMD) return -1; diff --git a/multitech/recipes/sysvinit/sysvinit_2.86.bbappend b/multitech/recipes/sysvinit/sysvinit_2.86.bbappend index bc4d4ac..096349c 100644 --- a/multitech/recipes/sysvinit/sysvinit_2.86.bbappend +++ b/multitech/recipes/sysvinit/sysvinit_2.86.bbappend @@ -1,2 +1,6 @@ FILESEXTRA := "${THISDIR}" FILESPATHBASE =. "${FILESEXTRA}:" + +PR .= ".corecdp1" + +SRC_URI += "file://sysvinit-2.86-define_enoioctlcmd.patch" |