Commit 1136275a authored by Brad King's avatar Brad King

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.
parent 1e120972
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment