summaryrefslogtreecommitdiff
path: root/dev-libs/serdisplib/files/serdisplib-2.02-musl.patch
blob: 4307c6d9c9c1909689e11656a262f7c78b1ffafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"