From 2b6d9a56f7b9e50444667d968c750bffb3934a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Lled=C3=B3?= Date: Wed, 28 Aug 2019 08:48:00 +0200 Subject: [PATCH] Contrib: Add kFreeBSD to the Unix port * cc.h: * Identify kFreeBSD by macros * Use standard error codes for this OS Signed-off-by: Simon Goldschmidt --- contrib/ports/unix/port/include/arch/cc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/ports/unix/port/include/arch/cc.h b/contrib/ports/unix/port/include/arch/cc.h index 3c44a099..7be900bf 100644 --- a/contrib/ports/unix/port/include/arch/cc.h +++ b/contrib/ports/unix/port/include/arch/cc.h @@ -41,6 +41,8 @@ #define LWIP_UNIX_MACH #elif defined __OpenBSD__ #define LWIP_UNIX_OPENBSD +#elif defined __FreeBSD_kernel__ && __GLIBC__ +#define LWIP_UNIX_KFREEBSD #elif defined __CYGWIN__ #define LWIP_UNIX_CYGWIN #elif defined __GNU__ @@ -52,7 +54,7 @@ #define LWIP_ERRNO_INCLUDE -#if defined(LWIP_UNIX_LINUX) || defined(LWIP_UNIX_HURD) +#if defined(LWIP_UNIX_LINUX) || defined(LWIP_UNIX_HURD) || defined(LWIP_UNIX_KFREEBSD) #define LWIP_ERRNO_STDINCLUDE 1 #endif