fix warnign on OSX

This commit is contained in:
Ken Martin 2004-07-13 13:05:35 -04:00
parent 7f31f95b54
commit be990132da
1 changed files with 7 additions and 1 deletions

View File

@ -60,7 +60,6 @@ SET(libCurl_SRCS
strequal.c
easy.c
http_chunks.c
strtok.c
connect.c
llist.c
hash.c
@ -68,6 +67,7 @@ SET(libCurl_SRCS
)
# if we have Kerberos 4, right now this is never on
IF(KRB4)
SET(libCurl_SRCS ${libCurl_SRCS}
@ -259,6 +259,12 @@ IF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO)
SET(HAVE_SIGNAL 1)
ENDIF(HAVE_SIGNAL_FUNC AND HAVE_SIGNAL_MACRO)
# only build compat strtok if we need to
IF (NOT HAVE_STRTOK_R)
SET(libCurl_SRCS ${libCurl_SRCS}
strtok.c
)
ENDIF (NOT HAVE_STRTOK_R)
# sigaction and sigsetjmp are special. Use special mechanism for
# detecting those, but only if previous attempt failed.