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:
maxice8 2017-10-11 23:37:35 -03:00
parent 6dfccce55d
commit ffaf5a42cd

5
nnn.c
View file

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