Browse Source

Compile without OpenSSL must work too

rdb 17 years ago
parent
commit
50845ca53c

+ 5 - 0
panda/src/downloader/virtualFileHTTP.cxx

@@ -17,6 +17,8 @@
 #include "stringStream.h"
 #include "stringStream.h"
 #include "zStream.h"
 #include "zStream.h"
 
 
+#ifdef HAVE_OPENSSL
+
 TypeHandle VirtualFileHTTP::_type_handle;
 TypeHandle VirtualFileHTTP::_type_handle;
 
 
 
 
@@ -276,3 +278,6 @@ get_timestamp() const {
   }
   }
   return 0;
   return 0;
 }
 }
+
+#endif // HAVE_OPENSSL
+

+ 5 - 0
panda/src/downloader/virtualFileHTTP.h

@@ -21,6 +21,8 @@
 #include "httpChannel.h"
 #include "httpChannel.h"
 #include "urlSpec.h"
 #include "urlSpec.h"
 
 
+#ifdef HAVE_OPENSSL
+
 class VirtualFileMountHTTP;
 class VirtualFileMountHTTP;
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -86,4 +88,7 @@ private:
 
 
 #include "virtualFileHTTP.I"
 #include "virtualFileHTTP.I"
 
 
+#endif // HAVE_OPENSSL
+
 #endif
 #endif
+