From: Johnathan Jenkins Date: Sun, 21 May 2017 01:21:48 +0000 (-0700) Subject: fix for glibc sys/types.h deprecation warnings (#31) X-Git-Tag: v1.2~43 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ab6bdbee6d86d4c5efdc09a399884f23a4580a2a;p=nnn.git fix for glibc sys/types.h deprecation warnings (#31) --- 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