diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-10 23:44:15 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-06-03 16:12:26 +0200 |
commit | 6be3a59628f21190145181d24d6d017d33579355 (patch) | |
tree | 9f77f84c833a5550fb4bb628cb71cbd014f4f49e /package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch | |
parent | b989436447d7e518d52517ebb7792af3736e1a79 (diff) | |
download | buildroot-6be3a59628f21190145181d24d6d017d33579355.tar.gz buildroot-6be3a59628f21190145181d24d6d017d33579355.zip |
vpnc: add patches to fix build with the musl C library
This commit adds three patches that are needed to fix build issues on
musl:
- <error.h> not available on musl
- structure redefinitions due to direct inclusion of kernel headers
- missing <sys/ttydefaults.h> inclusion
Patches have been submitted upstream:
http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2016-June/004186.html
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch')
-rw-r--r-- | package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch b/package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch new file mode 100644 index 0000000000..bce552e55e --- /dev/null +++ b/package/vpnc/0009-config.c-add-missing-sys-ttydefaults.h-include.patch @@ -0,0 +1,36 @@ +From 17277915af703a4767de791916621d8f59aef516 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Wed, 10 Feb 2016 23:21:26 +0100 +Subject: [PATCH] config.c: add missing <sys/ttydefaults.h> include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This include is needed to get the definition of CEOT, otherwise the +build fails with: + +config.c: In function ‘vpnc_getline’: +config.c:145:25: error: ‘CEOT’ undeclared (first use in this function) + if (llen == 0 && c == CEOT) + ^ + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + config.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/config.c b/config.c +index 11b363b..f47a534 100644 +--- a/config.c ++++ b/config.c +@@ -31,6 +31,7 @@ + #include <sys/types.h> + #include <sys/utsname.h> + #include <sys/wait.h> ++#include <sys/ttydefaults.h> + + #include <gcrypt.h> + +-- +2.6.4 + |