File tiocgdev.patch of Package hwinfo

--- ./src/hd/kbd.c.orig	2006-07-25 15:42:14.000000000 -0600
+++ ./src/hd/kbd.c	2006-07-25 15:43:00.000000000 -0600
@@ -134,11 +134,13 @@ void add_serial_console(hd_data_t *hd_da
   }
 
   if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) {
+#ifdef TIOCGDEV
     if(ioctl(fd, TIOCGDEV, &u) != -1) {
       tty_major = (u >> 8) & 0xfff;
       tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00);
       ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor);
     }
+#endif
 
     if(tty_major == 229 /* iseries hvc */) {
       if (tty_minor >= 128) {