diff -ur sox-14.0.0.old/src/gsm.c sox-14.0.0/src/gsm.c --- sox-14.0.0.old/src/gsm.c 2007-09-13 12:17:06.000000000 -0700 +++ sox-14.0.0/src/gsm.c 2007-09-13 12:20:20.000000000 -0700 @@ -29,7 +29,11 @@ #include "sox_i.h" #ifdef EXTERNAL_GSM +#ifdef HAVE_GSM_GSM_H #include +#elif HAVE_GSM_H +#include +#endif #else #include "../libgsm/gsm.h" #endif diff -ur sox-14.0.0.old/src/wav.c sox-14.0.0/src/wav.c --- sox-14.0.0.old/src/wav.c 2007-09-13 12:17:06.000000000 -0700 +++ sox-14.0.0/src/wav.c 2007-09-13 12:20:59.000000000 -0700 @@ -24,7 +24,11 @@ #include "ima_rw.h" #include "adpcm.h" #ifdef EXTERNAL_GSM +#ifdef HAVE_GSM_GSM_H #include +#elif HAVE_GSM_H +#include +#endif #else #include "../libgsm/gsm.h" #endif