Module: sems
Branch: master
Commit: 5c77aa56dc5d95475d433b5c67fb2b066fc4a19a
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=5c77aa56dc5d95475d433b5c67fb2b066fc4a19a

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Fri Sep 24 03:39:56 2010 +0200

on linux,define _GNU_SOURCE before including stdio

---

 core/amci/amci.h           |    3 +++
 core/log.h                 |    2 ++
 core/plug-in/speex/speex.c |    7 ++++---
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/core/amci/amci.h b/core/amci/amci.h
index 29f3e62..0d68a27 100644
--- a/core/amci/amci.h
+++ b/core/amci/amci.h
@@ -35,6 +35,9 @@
 extern "C" {
 #endif
 
+#ifdef __linux
+#define _GNU_SOURCE
+#endif
 #include <stdio.h>
 
 /**
diff --git a/core/log.h b/core/log.h
index 4869618..9d16be6 100644
--- a/core/log.h
+++ b/core/log.h
@@ -67,7 +67,9 @@ enum Log_Level {
 #endif
 
 #ifdef __linux
+# define _GNU_SOURCE
 # include <linux/unistd.h>
+# include <sys/syscall.h>
 # define GET_PID() syscall(__NR_gettid)
 #else
 # define GET_PID() getpid()
diff --git a/core/plug-in/speex/speex.c b/core/plug-in/speex/speex.c
index 0410754..da206c8 100644
--- a/core/plug-in/speex/speex.c
+++ b/core/plug-in/speex/speex.c
@@ -17,14 +17,15 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include <string.h>
-#include <stdlib.h>
-
 #include "amci.h"
 #include "codecs.h"
 #include "speex/speex.h"
 #include "../../log.h"
 
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
 /* Speex constants */
 #define SPEEX_FRAME_MS                  20
 #define SPEEX_NB_SAMPLES_PER_FRAME     160

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to