lkml.org 
[lkml]   [2022]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] speakup: include types.h so u_char is a known type
Date
Fixes build of utils.h header file, occurred when building kernel on
postmarketOS on Lenovo Duet Chromebook.

drivers/accessibility/speakup/utils.h:57:9: error: unknown type name 'u_char'; did you mean 'char'?
57 | u_char *pn = (u_char *)name;
| ^~~~~~
| char

Fixes: 6a5c94d92699 ("speakup: Generate speakupmap.h automatically")
Signed-off-by: Eric Curtin <ecurtin@redhat.com>
---
drivers/accessibility/speakup/utils.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/accessibility/speakup/utils.h b/drivers/accessibility/speakup/utils.h
index 4bf2ee8ac246..f6fe477ecb28 100644
--- a/drivers/accessibility/speakup/utils.h
+++ b/drivers/accessibility/speakup/utils.h
@@ -7,6 +7,7 @@
*/

#include <stdio.h>
+#include <sys/types.h>

#define MAXKEYS 512
#define MAXKEYVAL 160
--
2.37.3
\
 
 \ /
  Last update: 2022-10-25 12:22    [W:0.134 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site