mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
simplify sys/types.h inclusion
- Remove the musl specific inclusion, there is no harm in adding it on glibc - remove from the *BSD nest and make it included in all cases
This commit is contained in:
parent
6dfccce55d
commit
ffaf5a42cd
5
nnn.c
5
nnn.c
|
@ -23,15 +23,11 @@
|
|||
#endif
|
||||
#include <sys/inotify.h>
|
||||
#define LINUX_INOTIFY
|
||||
#if !defined(__GLIBC__)
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <sys/resource.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
# include <sys/types.h>
|
||||
#include <sys/event.h>
|
||||
#include <sys/time.h>
|
||||
#define BSD_KQUEUE
|
||||
|
@ -72,6 +68,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <readline/history.h>
|
||||
#include <readline/readline.h>
|
||||
|
|
Loading…
Reference in a new issue