libuv: Include uv/ headers from each other without any path

Headers in `uv/` can include each other without the `uv/` prefix.  Using
the prefix assumes that the location of `uv/` is in the include file
search path, but it is possible to include `uv.h` via a longer path.
This commit is contained in:
Brad King
2019-01-17 10:20:58 -05:00
parent 1e1209729b
commit 1136275ae1
2 changed files with 14 additions and 14 deletions

View File

@@ -42,32 +42,32 @@
#include <pthread.h>
#include <signal.h>
#include "uv/threadpool.h"
#include "threadpool.h"
#ifdef CMAKE_BOOTSTRAP
# include "uv/posix.h"
# include "posix.h"
#elif defined(__linux__)
# include "uv/linux.h"
# include "linux.h"
#elif defined (__MVS__)
# include "uv/os390.h"
# include "os390.h"
#elif defined(__PASE__)
# include "uv/posix.h"
# include "posix.h"
#elif defined(_AIX)
# include "uv/aix.h"
# include "aix.h"
#elif defined(__sun)
# include "uv/sunos.h"
# include "sunos.h"
#elif defined(__APPLE__)
# include "uv/darwin.h"
# include "darwin.h"
#elif defined(__DragonFly__) || \
defined(__FreeBSD__) || \
defined(__FreeBSD_kernel__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__)
# include "uv/bsd.h"
# include "bsd.h"
#elif defined(__CYGWIN__) || defined(__MSYS__)
# include "uv/posix.h"
# include "posix.h"
#elif defined(__GNU__)
# include "uv/posix.h"
# include "posix.h"
#endif
#ifndef NI_MAXHOST

View File

@@ -54,13 +54,13 @@ typedef struct pollfd {
#include <sys/stat.h>
#if defined(_MSC_VER) && _MSC_VER < 1600
# include "uv/stdint-msvc2008.h"
# include "stdint-msvc2008.h"
#else
# include <stdint.h>
#endif
#include "uv/tree.h"
#include "uv/threadpool.h"
#include "tree.h"
#include "threadpool.h"
#define MAX_PIPENAME_LEN 256