Module: sip-router
Branch: master
Commit: 00ea7481c9c78f123c70aaa32e1eb618c2f05392
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=00ea748…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Sep 26 22:44:49 2011 +0200
srdb1: make strptime available on freebsd
- remove unnecessary compile flags from db_ut.h
---
lib/srdb1/db_ut.c | 2 +-
lib/srdb1/db_ut.h | 19 -------------------
2 files changed, 1 insertions(+), 20 deletions(-)
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 18c9bf8..c34930f 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -31,7 +31,7 @@
*/
-#ifdef __OS_darwin
+#if defined (__OS_darwin) || defined (__OS_freebsd)
#include "../../pvar.h"
#endif
diff --git a/lib/srdb1/db_ut.h b/lib/srdb1/db_ut.h
index 7702753..41bc325 100644
--- a/lib/srdb1/db_ut.h
+++ b/lib/srdb1/db_ut.h
@@ -35,25 +35,6 @@
#include "../../pvar.h"
-/**
- * make strptime available
- * use 600 for 'Single UNIX Specification, Version 3'
- * _XOPEN_SOURCE creates conflict in swab definition in Solaris
- */
-#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
-
-#include <time.h>
-
-#undef _XOPEN_SOURCE
-#undef _XOPEN_SOURCE_EXTENDED
-
#include "db_key.h"
#include "db.h"