diff --git a/include/port/async-pipe.h b/include/port/async-pipe.h index 2ec0bc48..45a76db5 100644 --- a/include/port/async-pipe.h +++ b/include/port/async-pipe.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include + typedef void* async_pipe_t; typedef void (*async_pipe_onread)(void* param, int code, int bytes); typedef void (*async_pipe_onwrite)(void* param, int code, int bytes); @@ -25,6 +27,10 @@ int async_pipe_read(async_pipe_t pipe, void* msg, int len, async_pipe_onread cal // return: 0-success, other-error int async_pipe_write(async_pipe_t pipe, const void* msg, int len, async_pipe_onwrite callback, void* param); +static void aio_onread(sigval_t sigval); + +static void aio_onwrite(sigval_t sigval); + #ifdef __cplusplus } #endif diff --git a/test/Makefile b/test/Makefile index 81568dfb..267bc195 100644 --- a/test/Makefile +++ b/test/Makefile @@ -30,7 +30,7 @@ _SOURCE_FILES += $(ROOT)/source/port/sysvolume.cpp _SOURCE_FILES += $(ROOT)/source/string/snprintf.c _SOURCE_FILES += $(ROOT)/source/string/strndup.c _SOURCE_FILES += ./http-test.c -_SOURCE_FILES += ./rtsp-test.c +_SOURCE_FILES += ./rtsp-test.c _SOURCE_FILES += ./sdp-test.c SOURCE_FILES := $(filter-out $(_SOURCE_FILES),$(SOURCE_FILES)) @@ -46,7 +46,7 @@ else LIBPATHS += endif -LIBS = rt pthread dl aio +LIBS = rt pthread dl aio asan STATIC_LIBS = $(ROOT)/libhttp/$(BUILD).$(PLATFORM)/libhttp.a @@ -68,7 +68,7 @@ endif ifdef RTSP_TEST SOURCE_FILES += sdp-test.c SOURCE_FILES += rtsp-test.c -SOURCE_FILES += $(ROOT)/../media-server/librtsp/source/rtsp-header-range.c +SOURCE_FILES += $(ROOT)/../media-server/librtsp/source/rtsp-header-range.c SOURCE_FILES += $(ROOT)/../media-server/librtsp/source/rtsp-header-rtp-info.c SOURCE_FILES += $(ROOT)/../media-server/librtsp/source/rtsp-header-session.c SOURCE_FILES += $(ROOT)/../media-server/librtsp/source/rtsp-header-transport.c @@ -82,4 +82,4 @@ endif include $(ROOT)/gcc.mk -CXXFLAGS += -std=c++0x \ No newline at end of file +CXXFLAGS += -std=c++0x