Module: sip-router
Branch: kamailio_3.0
Commit: cc3351c1b9ee0df6aa43c6382cf577c382687043
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cc3351c…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 19:31:14 2010 +0200
presence_dialoginfo(k): fix bsd compilation
On FreeBSD don't define _XOPEN_SOURCE (define it only on linux).
It's not needed for strptime() and worse will cause some other
defines to be missing, like INADDR_LOOPBACK ( if_XOPEN_SOURCE
is defined, __BSD_VISIBLE will be undefined => lots of missing
defines).
Reported-by: Reported-by: Olle E. Johansson oej edvina net
(cherry picked from commit 850a7b31de86056fc9223d809dfae54b0e490c5f)
---
modules_k/presence_dialoginfo/pidf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/presence_dialoginfo/pidf.c b/modules_k/presence_dialoginfo/pidf.c
index 9285d2b..d90de4c 100644
--- a/modules_k/presence_dialoginfo/pidf.c
+++ b/modules_k/presence_dialoginfo/pidf.c
@@ -36,12 +36,12 @@
* use 600 for 'Single UNIX Specification, Version 3'
* _XOPEN_SOURCE creates conflict in header definitions in Solaris
*/
-#ifndef __OS_solaris
- #define _XOPEN_SOURCE 600 /* glibc2 on linux, bsd */
+#ifdef __OS_linux
+ #define _XOPEN_SOURCE 600 /* glibc2 on linux */
#define _BSD_SOURCE 1 /* needed on linux to "fix" the effect
of the above define on
features.h/unistd.h syscall() */
-#else
+#elif defined __OS_solaris
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#endif
Module: sip-router
Branch: kamailio_3.0
Commit: 8bc0c9ba5dc1fd9d863cd58c54ce469a6186d81f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8bc0c9b…
Author: Vincent Stemen <vince.lists(a)ngtek.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 16:45:05 2010 +0200
db_text(k) makefile: fix make use
This fixes a bug. It called make directly which breaks on
platforms where it is being compiled under gmake.
Signed-off-by: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
(cherry picked from commit 5d8552087be74332c1a7812ffb01d8298060cc62)
---
modules_k/db_text/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/db_text/Makefile b/modules_k/db_text/Makefile
index dd35b11..36bc48b 100644
--- a/modules_k/db_text/Makefile
+++ b/modules_k/db_text/Makefile
@@ -24,7 +24,7 @@ ifeq ($(INSTALL_FLAVOUR),kamailio)
# extra install for kamailio
install-dbtext-scripts: $(bin_prefix)/$(bin_dir)
- DBTEXTON=yes make -C ../../utils/kamctl/ install-modules
+ DBTEXTON=yes $(MAKE) -C ../../utils/kamctl/ install-modules
install-scripts: install-dbtext-scripts