diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-28 02:46:12 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-08-20 17:54:29 +0200 |
commit | dff3b42aad712ad0ea1cf2b8f9df7c3d0d45e1d6 (patch) | |
tree | 7164d52de2e7166795084efabdc91a061226e796 /openbsc/include | |
parent | 775eea233133157e7b0dc77fb6257052e7f147a3 (diff) |
configure: Find correct libgsm's gsm.h header
Some distributions (archlinux) or versions of libgsm install gsm.h in
/usr/include/gsm/gsm.h
Since libgsm doesn't come with a pkfconfig, let's first check if gsm.h
and take the correct path in the build setup.
Backport from osmo-mgw.git
Change-Id: I07d3c03903e0d4bb80e843c7ed917a27b791ea53
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/mgcp_transcode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp_transcode.h b/openbsc/include/openbsc/mgcp_transcode.h index 147e48bba..6892debc3 100644 --- a/openbsc/include/openbsc/mgcp_transcode.h +++ b/openbsc/include/openbsc/mgcp_transcode.h @@ -21,7 +21,11 @@ #include "bscconfig.h" +#if HAVE_GSM_H #include <gsm.h> +#elif HAVE_GSM_GSM_H +#include <gsm/gsm.h> +#endif #ifdef HAVE_BCG729 #include <bcg729/decoder.h> #include <bcg729/encoder.h> |