[SR-Dev] git:master: presence_dialoginfo(k): futex warning fix
Andrei Pelinescu-Onciul
andrei at iptel.org
Mon Apr 20 10:49:25 CEST 2009
Module: sip-router
Branch: master
Commit: aa416e89057be4112fe0ba40aa24c14e9a5d9f82
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aa416e89057be4112fe0ba40aa24c14e9a5d9f82
Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date: Mon Apr 20 10:47:34 2009 +0200
presence_dialoginfo(k): futex warning fix
- added _BSD_SOURCE define if _XOPEN_SOURCE is manually defined
(the _XOPEN_SOURCE define in pidf.c caused _BSD_SOURCE to be no
longer defined in features.h => _USE_MISC not defined =>
syscall() not declared in unistd.h.)
---
modules_k/presence_dialoginfo/pidf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence_dialoginfo/pidf.c b/modules_k/presence_dialoginfo/pidf.c
index e2b3222..9285d2b 100644
--- a/modules_k/presence_dialoginfo/pidf.c
+++ b/modules_k/presence_dialoginfo/pidf.c
@@ -38,6 +38,9 @@
*/
#ifndef __OS_solaris
#define _XOPEN_SOURCE 600 /* glibc2 on linux, bsd */
+ #define _BSD_SOURCE 1 /* needed on linux to "fix" the effect
+ of the above define on
+ features.h/unistd.h syscall() */
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#endif
More information about the sr-dev
mailing list