]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gsmopen: FS-4652 , compilation failed with Mobigator
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 26 Sep 2012 16:55:54 +0000 (18:55 +0200)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Wed, 26 Sep 2012 16:56:02 +0000 (18:56 +0200)
src/mod/endpoints/mod_gsmopen/alsa_nogsmlib_nocplusplus/mod_gsmopen/mod_gsmopen.c

index 40c6f51801e6e92099d9dd50cc2fc7ad4d41c76a..2841d2146a1cdf5bb43a3ea8b02da6232b57089a 100644 (file)
@@ -1469,10 +1469,12 @@ static switch_status_t load_config(int reload_type)
 #else 
                        const char *no_sound = "1";
 #endif // defined(GSMOPEN_ALSA) || defined(GSMOPEN_PORTAUDIO)
+#ifdef GSMOPEN_PORTAUDIO
                        const char *portaudiocindex;
                        const char *portaudiopindex;
                        const char *speexecho;
                        const char *speexpreprocess;
+#endif// GSMOPEN_PORTAUDIO
 
                        uint32_t interface_id = 0;
 #ifdef WIN32
@@ -1620,6 +1622,7 @@ static switch_status_t load_config(int reload_type)
                                        alsacname = val;
                                } else if (!strcasecmp(var, "alsapname")) {
                                        alsapname = val;
+#ifdef GSMOPEN_PORTAUDIO
                                } else if (!strcasecmp(var, "portaudiocindex")) {
                                        portaudiocindex = val;
                                } else if (!strcasecmp(var, "portaudiopindex")) {
@@ -1628,6 +1631,7 @@ static switch_status_t load_config(int reload_type)
                                        speexecho = val;
                                } else if (!strcasecmp(var, "speexpreprocess")) {
                                        speexpreprocess = val;
+#endif// GSMOPEN_PORTAUDIO
                                } else if (!strcasecmp(var, "at_early_audio")) {
                                        at_early_audio = val;
                                } else if (!strcasecmp(var, "at_after_preinit_pause")) {