From (new) MAINTAINER Christopher Zimmermann with some modifications by landry@, ajacoutot@, sthen@ and myself. Thanks! OK landry@, ajacoutot@, sthen@
26 lines
782 B
Plaintext
26 lines
782 B
Plaintext
$OpenBSD: patch-pjmedia_src_pjmedia-codec_gsm_c,v 1.1 2010/04/02 11:48:24 dcoppa Exp $
|
|
|
|
fix header detection when using external libgsm on OpenBSD
|
|
|
|
--- pjmedia/src/pjmedia-codec/gsm.c.orig Sat Jun 13 17:28:37 2009
|
|
+++ pjmedia/src/pjmedia-codec/gsm.c Wed Mar 31 16:14:16 2010
|
|
@@ -28,12 +28,17 @@
|
|
#include <pj/pool.h>
|
|
#include <pj/string.h>
|
|
#include <pj/os.h>
|
|
-#include "../../third_party/gsm/inc/gsm.h"
|
|
|
|
/*
|
|
* Only build this file if PJMEDIA_HAS_GSM_CODEC != 0
|
|
*/
|
|
#if defined(PJMEDIA_HAS_GSM_CODEC) && PJMEDIA_HAS_GSM_CODEC != 0
|
|
+
|
|
+#if defined(PJMEDIA_EXTERNAL_GSM_CODEC) && PJMEDIA_EXTERNAL_GSM_CODEC
|
|
+# include <gsm.h>
|
|
+#else
|
|
+# include "../../third_party/gsm/inc/gsm.h"
|
|
+#endif
|
|
|
|
/* We removed PLC in 0.6 (and re-enabled it again in 0.9!) */
|
|
#define PLC_DISABLED 0
|