Module: sems
Branch: master
Commit: 1181f522db0cccc119f3e1519dfdc58500bc5503
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=1181f522db0cccc119f3e1519dfdc58500bc5503
Author: debian <deb...@debian.(none)>
Committer: debian <deb...@debian.(none)>
Date: Thu Sep 23 22:34:36 2010 -0400
only define _GNU_SOURCE once
---
core/amci/amci.h | 4 +++-
core/log.h | 4 +++-
core/plug-in/g729/g729.c | 4 +---
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/core/amci/amci.h b/core/amci/amci.h
index 0d68a27..82008b3 100644
--- a/core/amci/amci.h
+++ b/core/amci/amci.h
@@ -36,7 +36,9 @@ extern "C" {
#endif
#ifdef __linux
-#define _GNU_SOURCE
+# ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+# endif
#endif
#include <stdio.h>
diff --git a/core/log.h b/core/log.h
index 9d16be6..b32bc0d 100644
--- a/core/log.h
+++ b/core/log.h
@@ -67,7 +67,9 @@ enum Log_Level {
#endif
#ifdef __linux
-# define _GNU_SOURCE
+# ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+# endif
# include <linux/unistd.h>
# include <sys/syscall.h>
# define GET_PID() syscall(__NR_gettid)
diff --git a/core/plug-in/g729/g729.c b/core/plug-in/g729/g729.c
index f0435a8..94dae7f 100644
--- a/core/plug-in/g729/g729.c
+++ b/core/plug-in/g729/g729.c
@@ -36,12 +36,10 @@
*/
#ifndef TEST
-#define _GNU_SOURCE
-#include <unistd.h>
+#include "../../log.h"
#include <stdio.h>
#include "amci.h"
#include "codecs.h"
-#include "../../log.h"
#else
#include <stdio.h>
#define ERROR printf
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev