]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypopen: windows compile
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 27 Oct 2010 17:09:43 +0000 (12:09 -0500)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 27 Oct 2010 17:10:00 +0000 (12:10 -0500)
src/mod/endpoints/mod_skypopen/mod_skypopen.c

index 1e39f1d4910b2c95c6e4d0333391f97f45874a5c..fdb6d563927e14702ca9811c6a83c3aa5c734a89 100644 (file)
@@ -397,11 +397,13 @@ static switch_status_t interface_exists(char *the_interface)
                switch_yield(50000);
        }
 
+#ifndef WIN32
        if (tech_pvt->SkypopenHandles.disp) {
                DEBUGA_SKYPE("REMOVE CLOSIN X\n", SKYPOPEN_P_LOG);
                XCloseDisplay(tech_pvt->SkypopenHandles.disp);
                DEBUGA_SKYPE("REMOVE CLOSIN X END\n", SKYPOPEN_P_LOG);
        }
+#endif
 
        if (globals.SKYPOPEN_INTERFACES[interface_id].skypopen_signaling_thread) {
                switch_thread_join(&status, globals.SKYPOPEN_INTERFACES[interface_id].skypopen_signaling_thread);
@@ -2096,11 +2098,13 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_skypopen_shutdown)
                                x--;
                                switch_yield(50000);
                        }
+#ifndef WIN32
                        if (tech_pvt->SkypopenHandles.disp) {
                                DEBUGA_SKYPE("CLOSIN X\n", SKYPOPEN_P_LOG);
                                XCloseDisplay(tech_pvt->SkypopenHandles.disp);
                                DEBUGA_SKYPE("CLOSIN X END\n", SKYPOPEN_P_LOG);
                        }
+#endif
                        if (globals.SKYPOPEN_INTERFACES[interface_id].skypopen_signaling_thread) {
                                switch_thread_join(&status, globals.SKYPOPEN_INTERFACES[interface_id].skypopen_signaling_thread);
                        }