mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
This will make it easier to modify the patch series moving forward. No functional changes. On one patch, we added the SoB from Giulio, which was missing. Giulio was the original contributor of the patch, and nobody touched it since it was introduced. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
From d3f0157bf2ac1afc9a810ccbe188110df724129d Mon Sep 17 00:00:00 2001
|
|
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
Date: Sun, 1 Dec 2024 15:46:15 +0100
|
|
Subject: [PATCH] Include cdefs.h wherever it is needed
|
|
|
|
cdefs.h is included from within a lot of glibc headers, so it almost
|
|
invariably and automagically gets pulled in with glibc.
|
|
|
|
However, this might not be the case with other C libraries. musl does
|
|
not provide cdefs.h so it does not include it from its own headers
|
|
(cdefs.h must be provided separately).
|
|
|
|
So we must include it when we are going to use macros it provides.
|
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
---
|
|
core/adbd/services.c | 1 +
|
|
core/libcutils/android_reboot.c | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
diff --git a/core/adbd/services.c b/core/adbd/services.c
|
|
index 5adcefe..6de1951 100644
|
|
--- a/core/adbd/services.c
|
|
+++ b/core/adbd/services.c
|
|
@@ -20,6 +20,7 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <pwd.h>
|
|
+#include <sys/cdefs.h>
|
|
|
|
#include "sysdeps.h"
|
|
|
|
diff --git a/core/libcutils/android_reboot.c b/core/libcutils/android_reboot.c
|
|
index 79c05f8..9386006 100644
|
|
--- a/core/libcutils/android_reboot.c
|
|
+++ b/core/libcutils/android_reboot.c
|
|
@@ -23,6 +23,7 @@
|
|
#include <string.h>
|
|
#include <linux/reboot.h>
|
|
#include <sys/syscall.h>
|
|
+#include <sys/cdefs.h>
|
|
|
|
#include <cutils/android_reboot.h>
|
|
|
|
--
|
|
2.47.0
|
|
|