idea
authorChristian Grothoff <christian@grothoff.org>
Thu, 9 Sep 2010 08:20:32 +0000 (08:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 9 Sep 2010 08:20:32 +0000 (08:20 +0000)
src/transport/plugin_transport_http.c

index b4488ffa4dfcc8b1509d3c0012a9493994da6be6..f1896b6cc02c9b3462b73f0f73f266c02e6f0d04 100644 (file)
@@ -2448,12 +2448,17 @@ libgnunet_plugin_transport_http_done (void *cls)
   return NULL;
 }
 
+#if BUILD_HTTPS
+#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init
+#else
+#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_http_init
+#endif
 
 /**
  * Entry point for the plugin.
  */
 void *
-libgnunet_plugin_transport_http_init (void *cls)
+LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
 {
   struct GNUNET_TRANSPORT_PluginEnvironment *env = cls;
   struct Plugin *plugin;