summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-28 01:07:28 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-28 08:37:31 +0100
commitaafaddc3ba9b14a319153aaff0a7f0d333ef3637 (patch)
tree703f51a654e988c2a22d396d9d2669563fa4a813 /include
parent0423a149c251f03a518c8f1d4e586bcbf308687c (diff)
Use standard types in include/device/input.h
--enable-platform=xen won't compile because u_char is not included from sys/types.h. Also, we are forcing users of include/device/input.h to include glibc headers that export such types which should not be necessary. For i386/i386at/kd.h we include input.h to get Scancode. Message-Id: <Y9S7oIyVFazVAOqb@jupiter.tail36e24.ts.net>
Diffstat (limited to 'include')
-rw-r--r--include/device/input.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/device/input.h b/include/device/input.h
index 3f8435a6..9de73a30 100644
--- a/include/device/input.h
+++ b/include/device/input.h
@@ -42,8 +42,8 @@
#define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t))
#define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t))
-typedef u_char Scancode;
-typedef u_short kev_type; /* kd event type */
+typedef uint8_t Scancode;
+typedef uint16_t kev_type; /* kd event type */
/* (used for event records) */
struct mouse_motion {