logo

oasis

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

0019-m4-Add-missing-includes.patch (1150B)


  1. From 3cc2a61c553d138778a6ec1dd84cd042ce834b4e Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Tue, 10 Apr 2018 16:24:12 -0700
  4. Subject: [PATCH] m4: Add missing includes
  5. ---
  6. usr.bin/m4/look.c | 1 +
  7. usr.bin/m4/main.c | 1 +
  8. usr.bin/m4/parser.y | 1 +
  9. 3 files changed, 3 insertions(+)
  10. diff --git a/usr.bin/m4/look.c b/usr.bin/m4/look.c
  11. index ac504570a9f..5feb0413cd6 100644
  12. --- a/usr.bin/m4/look.c
  13. +++ b/usr.bin/m4/look.c
  14. @@ -38,6 +38,7 @@
  15. * by: oz
  16. */
  17. +#include <sys/cdefs.h>
  18. #include <stdio.h>
  19. #include <stdlib.h>
  20. #include <stdint.h>
  21. diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c
  22. index f1b8fa5a55b..4e664c0a50b 100644
  23. --- a/usr.bin/m4/main.c
  24. +++ b/usr.bin/m4/main.c
  25. @@ -39,6 +39,7 @@
  26. * by: oz
  27. */
  28. +#include <sys/cdefs.h>
  29. #include <assert.h>
  30. #include <signal.h>
  31. #include <err.h>
  32. diff --git a/usr.bin/m4/parser.y b/usr.bin/m4/parser.y
  33. index 5b46d261a9a..fedded1e44c 100644
  34. --- a/usr.bin/m4/parser.y
  35. +++ b/usr.bin/m4/parser.y
  36. @@ -17,6 +17,7 @@
  37. */
  38. #include <math.h>
  39. #include <stdint.h>
  40. +#include <stdlib.h>
  41. #define YYSTYPE int32_t
  42. extern int32_t end_result;
  43. extern int yylex(void);
  44. --
  45. 2.22.0