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

This commit is contained in:
Johnathan Jenkins 2017-05-20 18:21:48 -07:00 committed by Arun Prakash Jana
parent 1e1518c147
commit ab6bdbee6d
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 6 additions and 1 deletions

7
nnn.c
View File

@ -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>