summaryrefslogtreecommitdiff
path: root/dev-libs/libezV24/files/libezV24-0.1.1-clang16-build-fix.patch
blob: 6579fe476c0f826a01a25f44558329d8bbaf2466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Bug: https://bugs.gentoo.org/895044
--- a/ezV24.c
+++ b/ezV24.c
@@ -42,6 +42,7 @@
 #include <errno.h>
 #include <termios.h>
 #include <sys/ioctl.h>
+#include <sys/param.h>
 
 
 #define __EZV24_C__
--- a/snprintf.c
+++ b/snprintf.c
@@ -61,6 +61,7 @@
 
 /* From: Id: sprint.c,v 1.5 1995/09/10 18:35:09 chuck Exp */
 
+#define _GNU_SOURCE
 #include <ctype.h>
 #include <stdlib.h>
 #include <stdarg.h>