aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/vpnc/vpnc/0003-error.h-is-specific-to-glibc-on-linux.patch
blob: 60c28cef3114aaa0ac713d2882fe7d3dbf7f8b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 6b49020893f999df56392b49b1a289cb96a113a1 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 29 Mar 2017 22:08:17 -0700
Subject: [PATCH 3/8] error.h is specific to glibc on linux

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 sysdep.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sysdep.h b/sysdep.h
index 137bf6d..6a323f0 100644
--- a/sysdep.h
+++ b/sysdep.h
@@ -37,9 +37,10 @@ int tun_read(int fd, unsigned char *buf, int len);
 int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
 
 /***************************************************************************/
-#if defined(__linux__) || defined(__GLIBC__)
+#if defined(__linux__)
+#if defined(__GLIBC__)
 #include <error.h>
-
+#endif
 #define HAVE_VASPRINTF 1
 #define HAVE_ASPRINTF  1
 #define HAVE_ERROR     1
-- 
2.12.1