Fix SunOS build

This commit is contained in:
Robert Mustacchi 2011-07-07 23:25:29 -07:00 committed by Ryan Dahl
parent 6d8c499e35
commit 8287551b91
3 changed files with 2 additions and 4 deletions

View File

@ -219,7 +219,7 @@ enum {
EV_CLEANUP = 0x00040000, /* event loop resumed in child */
EV_ASYNC = 0x00080000, /* async intra-loop signal */
EV_CUSTOM = 0x01000000, /* for use by user code */
EV_ERROR = -2147483648 /* sent when an error occurs */
EV_ERROR = (-2147483647 - 1) /* sent when an error occurs */
};
/* can be used to add custom fields to all watchers, while losing binary compatibility */

View File

@ -20,7 +20,6 @@
#include "uv.h"
#include <limits.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
@ -40,7 +39,7 @@ uint64_t uv_hrtime() {
int uv_exepath(char* buffer, size_t* size) {
size_t res;
pid_t pid;
char buf[PATH_MAX];
char buf[128];
if (buffer == NULL)
return (-1);

View File

@ -99,7 +99,6 @@ static void uv_fatal_error(const int errorno, const char* syscall) {
fprintf(stderr, "\nlibuv fatal error. (%d) %s\n", errorno, errmsg);
}
*((char*)NULL) = 0xff; /* Force debug break */
abort();
}