mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
fix for glibc sys/types.h deprecation warnings (#31)
This commit is contained in:
parent
1e1518c147
commit
ab6bdbee6d
5
nnn.c
5
nnn.c
|
@ -1,6 +1,11 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|
||||||
|
|| defined(__APPLE__)
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
#else
|
||||||
|
# include <sys/sysmacros.h>
|
||||||
|
#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
Loading…
Reference in a new issue