0001-displayid.c-Include-sys-types.h.patch 976 B

123456789101112131415161718192021222324252627282930313233343536
  1. From 648c1cb66b571b037976b61363654f39448f5fac Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd@kuhls.net>
  3. Date: Sun, 7 May 2023 14:14:48 +0200
  4. Subject: [PATCH] displayid.c: Include sys/types.h
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes build error
  9. ../displayid.c:377:10: error: ‘ssize_t’ undeclared (first use in this function); did you mean ‘size_t’?
  10. seen with:
  11. arc-linux-gcc.br_real (Buildroot 2021.11-4428-g6b6741b) 10.2.0
  12. Upstream: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/commit/5c9801a75f2815790ad1ed5500cec2728a36c6ec
  13. Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
  14. ---
  15. displayid.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/displayid.c b/displayid.c
  18. index 398772b..f1749c6 100644
  19. --- a/displayid.c
  20. +++ b/displayid.c
  21. @@ -3,6 +3,7 @@
  22. #include <inttypes.h>
  23. #include <stdlib.h>
  24. #include <string.h>
  25. +#include <sys/types.h>
  26. #include "bits.h"
  27. #include "displayid.h"
  28. --
  29. 2.39.2