logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0022-rsync-Add-missing-includes.patch (1057B)


  1. From 9320adbea46f051b32c93a171dc0d52de8f845c3 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 14 Jun 2019 12:40:56 -0700
  4. Subject: [PATCH] rsync: Add missing includes
  5. - stdio.h in socket.c for sscanf
  6. - stdint.h in extern.h for fixed-width integer types
  7. - sys/types.h in extern.h for various type definitions
  8. ---
  9. usr.bin/rsync/extern.h | 2 ++
  10. usr.bin/rsync/socket.c | 1 +
  11. 2 files changed, 3 insertions(+)
  12. diff --git a/usr.bin/rsync/extern.h b/usr.bin/rsync/extern.h
  13. index 5bb23aaa486..55d7bc26ae2 100644
  14. --- a/usr.bin/rsync/extern.h
  15. +++ b/usr.bin/rsync/extern.h
  16. @@ -17,6 +17,8 @@
  17. #ifndef EXTERN_H
  18. #define EXTERN_H
  19. +#include <stdint.h>
  20. +#include <sys/types.h>
  21. #include <openssl/md4.h>
  22. /*
  23. diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
  24. index d723d9e7df4..adc4a22cf40 100644
  25. --- a/usr.bin/rsync/socket.c
  26. +++ b/usr.bin/rsync/socket.c
  27. @@ -28,6 +28,7 @@
  28. #include <poll.h>
  29. #include <resolv.h>
  30. #include <stdlib.h>
  31. +#include <stdio.h>
  32. #include <string.h>
  33. #include <unistd.h>
  34. #include <err.h>
  35. --
  36. 2.49.0