Module: sip-router Branch: master Commit: c14314a41793c03c0e9b348845b403c27875e85a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c14314a4...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Mon Apr 20 10:56:11 2009 +0200
presence_xml(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_xml/pidf.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence_xml/pidf.c b/modules_k/presence_xml/pidf.c index d83fd6d..36eb2a5 100644 --- a/modules_k/presence_xml/pidf.c +++ b/modules_k/presence_xml/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