package/xvkbd: fix build with gcc >= 14.x

Fixes:

  https://autobuild.buildroot.net/results/86f2ba051e864375bda620dd92e01cb7b8532ac3/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2025-12-28 14:45:23 +01:00
committed by Thomas Petazzoni
parent adc2d87190
commit 62db5ae567
+19
View File
@@ -0,0 +1,19 @@
Fix build with gcc-14
Upstream: https://sources.debian.org/src/xvkbd/4.1-3/debian/patches/gcc-14
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
xvkbd.c | 1 +
1 file changed, 1 insertion(+)
--- a/xvkbd.c
+++ b/xvkbd.c
@@ -15,6 +15,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*/
+#define _CONST_X_STRING
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>