2
1

0015-core-adbd-adb.c-include-correct-header-for-prctl.patch 995 B

12345678910111213141516171819202122232425262728293031323334
  1. From 8f351150de38641c8ce2e9b7f9a5cba29ccd8f7e Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Sun, 14 Jul 2024 13:00:02 +0200
  4. Subject: [PATCH] core/adbd/adb.c: include correct header for prctl()
  5. As documented by prctl(2), the correct header to include for prctl()
  6. is <sys/prctl.h>, not <linux/prctl.h>.
  7. Fixes:
  8. core/adbd/adb.c:1256:13: error: implicit declaration of function 'prctl' [-Wimplicit-function-declaration]
  9. Upstream: N/A, we're too far from upstream
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  11. ---
  12. core/adbd/adb.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/core/adbd/adb.c b/core/adbd/adb.c
  15. index 98b1de1..10f420b 100644
  16. --- a/core/adbd/adb.c
  17. +++ b/core/adbd/adb.c
  18. @@ -42,7 +42,7 @@
  19. #include "android_filesystem_config.h"
  20. #include <linux/capability.h>
  21. #include <sys/syscall.h>
  22. -#include <linux/prctl.h>
  23. +#include <sys/prctl.h>
  24. #include <sys/mount.h>
  25. #else
  26. #include "usb_vendors.h"
  27. --
  28. 2.47.0