summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-14 14:10:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-18 09:58:04 +0100
commit4daba0676265a00a12f1cdf5ef9f0d6ee02761b9 (patch)
treefdfb8ef6e443b0b0134ee56e7cbe493bab5d426f
parent34021b804dbe62b0bc606aacfefde53e54ddde05 (diff)
downloadcurl-4daba0676265a00a12f1cdf5ef9f0d6ee02761b9.tar.gz
rtsp: disable if Hyper is used
-rw-r--r--lib/rtsp.c4
-rw-r--r--lib/rtsp.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/rtsp.c b/lib/rtsp.c
index 151ff4af2..e9ee2b36b 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -22,7 +22,7 @@
#include "curl_setup.h"
-#ifndef CURL_DISABLE_RTSP
+#if !defined(CURL_DISABLE_RTSP) && !defined(USE_HYPER)
#include "urldata.h"
#include <curl/curl.h>
@@ -826,4 +826,4 @@ CURLcode Curl_rtsp_parseheader(struct connectdata *conn,
return CURLE_OK;
}
-#endif /* CURL_DISABLE_RTSP */
+#endif /* CURL_DISABLE_RTSP or using Hyper */
diff --git a/lib/rtsp.h b/lib/rtsp.h
index bf7f0bc8e..76ed28b4c 100644
--- a/lib/rtsp.h
+++ b/lib/rtsp.h
@@ -21,6 +21,10 @@
* KIND, either express or implied.
*
***************************************************************************/
+#ifdef USE_HYPER
+#define CURL_DISABLE_RTSP
+#endif
+
#ifndef CURL_DISABLE_RTSP
extern const struct Curl_handler Curl_handler_rtsp;