glibc: Bug in include file?
/usr/include/bits/ioctls.h are different in i386 and Sparc;
but the one from Sparc doesn't work: it refers to <kernel_termios.h>
which doesn't exist.
I'm using the one from i386 without troubles...
These are the differences between the i386 and the Sparc
version:
root@groucho:/debian/glibc-2.0.90-970928/sysdeps/unix/sysv/linux# diff -u bits/ioctls.h sparc/bits/ioctls.h
--- bits/ioctls.h Sat Jun 21 06:48:56 1997
+++ sparc/bits/ioctls.h Thu Sep 11 20:21:46 1997
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -25,6 +25,19 @@
/* Use the definitions from the kernel header files. */
#include <asm/ioctls.h>
+#include <kernel_termios.h>
+
+/* Oh well, this is necessary since the kernel data structure is
+ different from the user-level version. */
+#undef TCGETS
+#undef TCSETS
+#undef TCSETSW
+#undef TCSETSF
+#define TCGETS _IOR ('T', 8, struct __kernel_termios)
+#define TCSETS _IOW ('T', 9, struct __kernel_termios)
+#define TCSETSW _IOW ('T', 10, struct __kernel_termios)
+#define TCSETSF _IOW ('T', 11, struct __kernel_termios)
+
#include <linux/sockios.h>
#endif /* bits/ioctls.h */
--
Juan Cespedes
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: