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>
(cherry picked from commit 62db5ae5675a512812f8b183cb9a0216e688a621)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Bernd Kuhls
2025-12-07 14:00:29 +01:00
committed by Thomas Perale
parent 8fb28e79f2
commit 0584d66576

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>