nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ab6bdbee6d86d4c5efdc09a399884f23a4580a2a
parent 1e1518c1470e0fd83e8c80ae493be1687618223b
Author: Johnathan Jenkins <twodopeshaggy@gmail.com>
Date:   Sat, 20 May 2017 18:21:48 -0700

fix for glibc sys/types.h deprecation warnings (#31)


Diffstat:
Mnnn.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/nnn.c b/nnn.c @@ -1,6 +1,11 @@ /* See LICENSE file for copyright and license details. */ #include <sys/stat.h> -#include <sys/types.h> +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) +# include <sys/types.h> +#else +# include <sys/sysmacros.h> +#endif #include <sys/wait.h> #include <sys/statvfs.h> #include <sys/resource.h>