Fixed build failure if GIT_CURL is not defined

This commit is contained in:
Pierre-Olivier Latour 2015-06-26 08:17:56 -07:00
parent 14888070b9
commit cae2a55552
2 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ int git_openssl_stream_new(git_stream **out, const char *host, const char *port)
#ifdef GIT_CURL #ifdef GIT_CURL
error = git_curl_stream_new(&st->io, host, port); error = git_curl_stream_new(&st->io, host, port);
#else #else
error = git_socket_stream_new(&st->io, host, port) error = git_socket_stream_new(&st->io, host, port);
#endif #endif
if (error < 0) if (error < 0)

View File

@ -244,7 +244,7 @@ int git_stransport_stream_new(git_stream **out, const char *host, const char *po
#ifdef GIT_CURL #ifdef GIT_CURL
error = git_curl_stream_new(&st->io, host, port); error = git_curl_stream_new(&st->io, host, port);
#else #else
error = git_socket_stream_new(&st->io, host, port) error = git_socket_stream_new(&st->io, host, port);
#endif #endif
if (error < 0){ if (error < 0){