From ab6bdbee6d86d4c5efdc09a399884f23a4580a2a Mon Sep 17 00:00:00 2001 From: Johnathan Jenkins Date: Sat, 20 May 2017 18:21:48 -0700 Subject: [PATCH] fix for glibc sys/types.h deprecation warnings (#31) --- nnn.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nnn.c b/nnn.c index 4cee5b33..ce926764 100644 --- a/nnn.c +++ b/nnn.c @@ -1,6 +1,11 @@ /* See LICENSE file for copyright and license details. */ #include -#include +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) +# include +#else +# include +#endif #include #include #include