make.sh support Darwin

pull/1/head
yuqing 2014-08-09 10:12:13 +08:00
parent e1cbe753ba
commit dbc7bf6981
6 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ LIBS=''
uname=`uname`
if [ "$uname" = "Linux" ]; then
CFLAGS="$CFLAGS -DOS_LINUX -DIOEVENT_USE_EPOLL"
elif [ "$uname" = "FreeBSD" ]; then
elif [ "$uname" = "FreeBSD"] || [ "$uname" = "Darwin"]; then
CFLAGS="$CFLAGS -DOS_FREEBSD -DIOEVENT_USE_KQUEUE"
elif [ "$uname" = "SunOS" ]; then
CFLAGS="$CFLAGS -DOS_SUNOS -D_THREAD_SAFE -DIOEVENT_USE_PORT"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.