Changes to compile in Node
This commit is contained in:
parent
d85168b299
commit
c6edabdba8
@ -21,7 +21,7 @@
|
|||||||
CC = $(PREFIX)gcc
|
CC = $(PREFIX)gcc
|
||||||
AR = $(PREFIX)ar
|
AR = $(PREFIX)ar
|
||||||
E=
|
E=
|
||||||
CFLAGS=--std=gnu89 -g
|
CFLAGS=--std=gnu89 -g -DEV_MULTIPLICITY=0
|
||||||
LINKFLAGS=-lm
|
LINKFLAGS=-lm
|
||||||
|
|
||||||
ifeq (SunOS,$(uname_S))
|
ifeq (SunOS,$(uname_S))
|
||||||
@ -29,7 +29,7 @@ LINKFLAGS+=-lsocket -lnsl
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Need _GNU_SOURCE for strdup?
|
# Need _GNU_SOURCE for strdup?
|
||||||
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE -DEV_MULTIPLICITY=0
|
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE
|
||||||
|
|
||||||
RUNNER_LINKFLAGS=$(LINKFLAGS) -pthread
|
RUNNER_LINKFLAGS=$(LINKFLAGS) -pthread
|
||||||
RUNNER_LIBS=
|
RUNNER_LIBS=
|
||||||
|
|||||||
6
uv.h
6
uv.h
@ -21,6 +21,9 @@
|
|||||||
|
|
||||||
#ifndef UV_H
|
#ifndef UV_H
|
||||||
#define UV_H
|
#define UV_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define UV_VERSION_MAJOR 0
|
#define UV_VERSION_MAJOR 0
|
||||||
#define UV_VERSION_MINOR 1
|
#define UV_VERSION_MINOR 1
|
||||||
@ -268,4 +271,7 @@ int uv_close(uv_handle_t* handle);
|
|||||||
/* Utility */
|
/* Utility */
|
||||||
struct sockaddr_in uv_ip4_addr(char* ip, int port);
|
struct sockaddr_in uv_ip4_addr(char* ip, int port);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* UV_H */
|
#endif /* UV_H */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user