aboutsummaryrefslogtreecommitdiff
path: root/test/includes
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2015-11-25 19:52:33 -0500
committerMichael Reed <Pyrohh@users.noreply.github.com>2015-11-25 19:52:33 -0500
commitd3dbaa321b86bd35e12e759590418e3fbe1929ae (patch)
tree8f8eb05cc5ae6d4bdc2d1325a40af8c82f49fc20 /test/includes
parent4f24b9e06f59592c120dd6d5c1e7f0f4a53b23f1 (diff)
parentd873084581c5c94d2a910aea8561ea1d64eeafbd (diff)
downloadrneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.tar.gz
rneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.tar.bz2
rneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.zip
Merge pull request #3531 from equalsraf/tb-cleanup-os-errors
[RFC] Cleanup use of os_* functions errors and errno
Diffstat (limited to 'test/includes')
-rw-r--r--test/includes/CMakeLists.txt1
-rw-r--r--test/includes/pre/sys/errno.h4
-rw-r--r--test/includes/pre/uv-errno.h4
3 files changed, 5 insertions, 4 deletions
diff --git a/test/includes/CMakeLists.txt b/test/includes/CMakeLists.txt
index a139683b42..3d85197f19 100644
--- a/test/includes/CMakeLists.txt
+++ b/test/includes/CMakeLists.txt
@@ -8,6 +8,7 @@ foreach(hfile ${PRE_HEADERS})
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile}
COMMAND ${CMAKE_C_COMPILER} -std=c99 -E -P
${CMAKE_CURRENT_SOURCE_DIR}/${hfile}
+ -I${LIBUV_INCLUDE_DIRS}
-o ${CMAKE_CURRENT_BINARY_DIR}/${post_hfile})
list(APPEND POST_HEADERS ${post_hfile})
endforeach()
diff --git a/test/includes/pre/sys/errno.h b/test/includes/pre/sys/errno.h
deleted file mode 100644
index 0b8934d33e..0000000000
--- a/test/includes/pre/sys/errno.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <sys/errno.h>
-
-static const int kENOENT = ENOENT;
-static const int kEEXIST = EEXIST;
diff --git a/test/includes/pre/uv-errno.h b/test/includes/pre/uv-errno.h
new file mode 100644
index 0000000000..6b80f60e5c
--- /dev/null
+++ b/test/includes/pre/uv-errno.h
@@ -0,0 +1,4 @@
+#include <uv-errno.h>
+
+static const int kUV_ENOENT = UV_ENOENT;
+static const int kUV_EEXIST = UV_EEXIST;