0009-config.c-add-missing-sys-ttydefaults.h-include.patch 964 B

123456789101112131415161718192021222324252627282930313233343536
  1. From 17277915af703a4767de791916621d8f59aef516 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 10 Feb 2016 23:21:26 +0100
  4. Subject: [PATCH] config.c: add missing <sys/ttydefaults.h> include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This include is needed to get the definition of CEOT, otherwise the
  9. build fails with:
  10. config.c: In function ‘vpnc_getline’:
  11. config.c:145:25: error: ‘CEOT’ undeclared (first use in this function)
  12. if (llen == 0 && c == CEOT)
  13. ^
  14. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  15. ---
  16. config.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/config.c b/config.c
  19. index 11b363b..f47a534 100644
  20. --- a/config.c
  21. +++ b/config.c
  22. @@ -31,6 +31,7 @@
  23. #include <sys/types.h>
  24. #include <sys/utsname.h>
  25. #include <sys/wait.h>
  26. +#include <sys/ttydefaults.h>
  27. #include <gcrypt.h>
  28. --
  29. 2.6.4