openbsd-ports/telephony/pjsua/patches/patch-pjmedia_src_pjmedia_tonegen_c
deanna 06f82acff2 - let it build on all archs
- don't redefine stuff we have in system headers

tested on vax with --null-audio
"looks sane" todd@
2007-11-06 02:50:28 +00:00

28 lines
878 B
Plaintext

$OpenBSD: patch-pjmedia_src_pjmedia_tonegen_c,v 1.1 2007/11/06 02:50:28 deanna Exp $
--- pjmedia/src/pjmedia/tonegen.c.orig Sat Nov 3 20:54:49 2007
+++ pjmedia/src/pjmedia/tonegen.c Sat Nov 3 20:58:27 2007
@@ -16,6 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <math.h>
#include <pjmedia/tonegen.h>
#include <pjmedia/errno.h>
#include <pj/assert.h>
@@ -44,7 +45,6 @@
* the normal sin() generator.
* Speed = 40.6 cycles per sample.
*/
-# include <math.h>
struct gen
{
DATA a, s0, s1;
@@ -99,7 +99,6 @@
#else
# error "Should never get to this part"
-# include <math.h>
/*
* Should never really reach here, but anyway it's provided for reference.
* This is the good old tone generator using sin().