mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-03 13:27:28 -08:00
Closes: https://bugs.gentoo.org/830520 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
20 lines
639 B
Diff
20 lines
639 B
Diff
Include <sys/type.h> before defining "ushort" macro
|
|
|
|
sys/types.h uses a typedef to define ushort. If ushort is defined as a macro,
|
|
this will cause a compile failure.
|
|
|
|
In file included from serdisp_control.c:43:
|
|
../include/serdisplib/serdisp_gpevents.h:75:19: error: expected identifier or '(' before 'unsigned'
|
|
75 | #define ushort (unsigned short)
|
|
|
|
--- a/include/serdisplib/serdisp_gpevents.h
|
|
+++ b/include/serdisplib/serdisp_gpevents.h
|
|
@@ -50,6 +50,7 @@
|
|
#include "serdisplib/serdisp_connect.h"
|
|
#include "serdisplib/serdisp_control.h"
|
|
#include <sys/time.h>
|
|
+#include <sys/types.h>
|
|
#include <stdint.h>
|
|
|
|
#include "../../config.h"
|