1From 6b49020893f999df56392b49b1a289cb96a113a1 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Wed, 29 Mar 2017 22:08:17 -0700 4Subject: [PATCH 3/8] error.h is specific to glibc on linux 5 6Signed-off-by: Khem Raj <raj.khem@gmail.com> 7--- 8 sysdep.h | 5 +++-- 9 1 file changed, 3 insertions(+), 2 deletions(-) 10 11diff --git a/sysdep.h b/sysdep.h 12index 137bf6d..6a323f0 100644 13--- a/sysdep.h 14+++ b/sysdep.h 15@@ -37,9 +37,10 @@ int tun_read(int fd, unsigned char *buf, int len); 16 int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr); 17 18 /***************************************************************************/ 19-#if defined(__linux__) || defined(__GLIBC__) 20+#if defined(__linux__) 21+#if defined(__GLIBC__) 22 #include <error.h> 23- 24+#endif 25 #define HAVE_VASPRINTF 1 26 #define HAVE_ASPRINTF 1 27 #define HAVE_ERROR 1 28-- 292.12.1 30 31