Permalink
Browse files

uv: upgrade to a28f145

  • Loading branch information...
1 parent 7ab4a77 commit d908b83f59fd6b3ccb83680172a28866bb255364 @piscisaureus piscisaureus committed Sep 14, 2012
@@ -53,6 +53,14 @@ LINKFLAGS+=-lsocket -lnsl -lkstat
OBJS += src/unix/sunos.o
endif
+ifeq (AIX,$(uname_S))
+EV_CONFIG=config_aix.h
+EIO_CONFIG=config_aix.h
+CPPFLAGS += -Isrc/ares/config_aix -D_ALL_SOURCE -D_XOPEN_SOURCE=500
+LINKFLAGS+= -lperfstat
+OBJS += src/unix/aix.o
+endif
+
ifeq (Darwin,$(uname_S))
EV_CONFIG=config_darwin.h
EIO_CONFIG=config_darwin.h
@@ -219,14 +219,11 @@ typedef union {
} fallback_;
} uv_rwlock_t;
-#define UV_ONCE_INIT { 0, NULL, NULL }
+#define UV_ONCE_INIT { 0, NULL }
typedef struct uv_once_s {
unsigned char ran;
- /* The actual event handle must be aligned to sizeof(HANDLE), so in */
- /* practice it might overlap padding a little. */
HANDLE event;
- HANDLE padding;
} uv_once_t;
/* Platform-specific definitions for uv_spawn support. */
@@ -57,7 +57,8 @@ extern "C" {
# define __unix__
#endif
-#if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__)
+#if defined(__unix__) || defined(__POSIX__) || \
+ defined(__APPLE__) || defined(_AIX)
# include "uv-private/uv-unix.h"
#else
# include "uv-private/uv-win.h"
@@ -236,7 +236,7 @@ static int statbuf_eq(const uv_statbuf_t* a, const uv_statbuf_t* b) {
#include "win/handle-inl.h"
void uv__fs_poll_endgame(uv_loop_t* loop, uv_fs_poll_t* handle) {
- assert(handle->flags & UV_HANDLE_CLOSING);
+ assert(handle->flags & UV__HANDLE_CLOSING);
assert(!(handle->flags & UV_HANDLE_CLOSED));
uv__handle_close(handle);
}
Oops, something went wrong. Retry.

0 comments on commit d908b83

Please sign in to comment.