Module: sip-router
Branch: master
Commit: fa825fd0e8fa5c29ded4276a0e021df67a327897
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fa825fd…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Feb 13 17:28:40 2009 +0100
libsrdb1: futex warning fix
- added _BSD_SOURCE define if _XOPEN_SOURCE is manually defined
(the _XOPEN_SOURCE define in db_ut.h caused _BSD_SOURCE to be no
longer defined in features.h => _USE_MISC not defined =>
syscall() not declared in unistd.h.)
---
lib/srdb1/db_ut.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/srdb1/db_ut.h b/lib/srdb1/db_ut.h
index 050a75b..9c936df 100644
--- a/lib/srdb1/db_ut.h
+++ b/lib/srdb1/db_ut.h
@@ -45,6 +45,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