0001-Fix-warning-implicit-declaration-of-function-minor-m.patch 901 B

1234567891011121314151617181920212223242526272829303132
  1. From bfa96fec44b7db78b43b9b8d20d7ca02616f70ed Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Mon, 13 Aug 2018 17:41:57 +0200
  4. Subject: Fix: "warning: implicit declaration of function 'minor' / 'major'"
  5. errors
  6. Fix the "warning: implicit declaration of function 'minor' / 'major'"
  7. compiler warnings which ultimately lead to the following build error:
  8. src/get_media_devices.c:522: undefined reference to `major'
  9. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  10. ---
  11. src/get_media_devices.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/get_media_devices.c b/src/get_media_devices.c
  14. index 619734ea..453b0677 100644
  15. --- a/src/get_media_devices.c
  16. +++ b/src/get_media_devices.c
  17. @@ -23,6 +23,7 @@
  18. #include <unistd.h>
  19. #include <sys/types.h>
  20. #include <sys/stat.h>
  21. +#include <sys/sysmacros.h>
  22. #include <string.h>
  23. #include <stdlib.h>
  24. #include <malloc.h>
  25. --
  26. 2.11.0