Fix SunOS build
This commit is contained in:
parent
6d8c499e35
commit
8287551b91
@ -219,7 +219,7 @@ enum {
|
|||||||
EV_CLEANUP = 0x00040000, /* event loop resumed in child */
|
EV_CLEANUP = 0x00040000, /* event loop resumed in child */
|
||||||
EV_ASYNC = 0x00080000, /* async intra-loop signal */
|
EV_ASYNC = 0x00080000, /* async intra-loop signal */
|
||||||
EV_CUSTOM = 0x01000000, /* for use by user code */
|
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 */
|
/* can be used to add custom fields to all watchers, while losing binary compatibility */
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "uv.h"
|
#include "uv.h"
|
||||||
|
|
||||||
#include <limits.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -40,7 +39,7 @@ uint64_t uv_hrtime() {
|
|||||||
int uv_exepath(char* buffer, size_t* size) {
|
int uv_exepath(char* buffer, size_t* size) {
|
||||||
size_t res;
|
size_t res;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
char buf[PATH_MAX];
|
char buf[128];
|
||||||
|
|
||||||
if (buffer == NULL)
|
if (buffer == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|||||||
@ -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);
|
fprintf(stderr, "\nlibuv fatal error. (%d) %s\n", errorno, errmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
*((char*)NULL) = 0xff; /* Force debug break */
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user