mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Fix the following musl build failure with gcc 14:
daemon/old_main.c: In function 'old_main':
daemon/old_main.c:56:11: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
56 | if(!strcmp((which_mouse->opt_dev),"-")) fd=0; /* use stdin */
| ^~~~~~
daemon/old_main.c:35:1: note: include '<string.h>' or provide a declaration of 'strcmp'
34 | #include "headers/gpmInt.h" /* daemon internals */
+++ |+#include <string.h>
35 |
While at it, add Upstream tags to other patches
Fixes:
- http://autobuild.buildroot.org/results/3192740863d57e72e90e622683e7b9fcc057fa8b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From 2085cab74a0a84df8b965addf007775a7225c9ec Mon Sep 17 00:00:00 2001
|
|
From: Kurt Nalty <46026992+kurtnalty@users.noreply.github.com>
|
|
Date: Sat, 29 Dec 2018 23:47:17 -0600
|
|
Subject: [PATCH] Add include <string.h>
|
|
|
|
Added
|
|
line 28, #include <string.h> /* strcpy, bzero */
|
|
for musl compilation
|
|
|
|
Upstream: https://github.com/telmich/gpm/commit/2085cab74a0a84df8b965addf007775a7225c9ec
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
---
|
|
src/daemon/old_main.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/daemon/old_main.c b/src/daemon/old_main.c
|
|
index 2581e26..ab7a87f 100644
|
|
--- a/src/daemon/old_main.c
|
|
+++ b/src/daemon/old_main.c
|
|
@@ -25,6 +25,7 @@
|
|
#include <signal.h> /* guess again */
|
|
#include <errno.h> /* guess again */
|
|
#include <unistd.h> /* unlink */
|
|
+#include <string.h> /* strcpy, bzero */
|
|
#include <sys/stat.h> /* chmod */
|
|
|
|
#include <linux/kd.h> /* linux hd* */
|