diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/xserver/xserver-kdrive/devfs.patch | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/xserver/xserver-kdrive/devfs.patch')
-rw-r--r-- | meta/packages/xserver/xserver-kdrive/devfs.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/packages/xserver/xserver-kdrive/devfs.patch b/meta/packages/xserver/xserver-kdrive/devfs.patch new file mode 100644 index 0000000000..a6238126c0 --- /dev/null +++ b/meta/packages/xserver/xserver-kdrive/devfs.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- xserver/hw/kdrive/linux/linux.c~devfs | ||
7 | +++ xserver/hw/kdrive/linux/linux.c | ||
8 | @@ -82,10 +82,10 @@ | ||
9 | vtno = kdVirtualTerminal; | ||
10 | else | ||
11 | { | ||
12 | - if ((fd = open("/dev/tty0",O_WRONLY,0)) < 0) | ||
13 | + if ((fd = open("/dev/vc/0",O_WRONLY,0)) < 0) | ||
14 | { | ||
15 | FatalError( | ||
16 | - "LinuxInit: Cannot open /dev/tty0 (%s)\n", | ||
17 | + "LinuxInit: Cannot open /dev/tty/0 (%s)\n", | ||
18 | strerror(errno)); | ||
19 | } | ||
20 | if ((ioctl(fd, VT_OPENQRY, &vtno) < 0) || | ||
21 | @@ -96,7 +96,7 @@ | ||
22 | } | ||
23 | close(fd); | ||
24 | |||
25 | - sprintf(vtname,"/dev/tty%d",vtno); /* /dev/tty1-64 */ | ||
26 | + sprintf(vtname,"/dev/vc/%d",vtno); /* /dev/tty1-64 */ | ||
27 | |||
28 | if ((LinuxConsoleFd = open(vtname, O_RDWR|O_NDELAY, 0)) < 0) | ||
29 | { | ||
30 | @@ -113,7 +113,7 @@ | ||
31 | * | ||
32 | * Why is this needed? | ||
33 | */ | ||
34 | - LinuxCheckChown ("/dev/tty0"); | ||
35 | + LinuxCheckChown ("/dev/vc/0"); | ||
36 | /* | ||
37 | * Linux doesn't switch to an active vt after the last close of a vt, | ||
38 | * so we do this ourselves by remembering which is active now. | ||
39 | @@ -453,7 +453,7 @@ | ||
40 | activeVT = -1; | ||
41 | } | ||
42 | close(LinuxConsoleFd); /* make the vt-manager happy */ | ||
43 | - fd = open ("/dev/tty0", O_RDWR|O_NDELAY, 0); | ||
44 | + fd = open ("/dev/vc/0", O_RDWR|O_NDELAY, 0); | ||
45 | if (fd >= 0) | ||
46 | { | ||
47 | memset (&vts, '\0', sizeof (vts)); /* valgrind */ | ||