Browse Source

srdb1: make strptime available on freebsd

- remove unnecessary compile flags from db_ut.h
Daniel-Constantin Mierla 14 years ago
parent
commit
00ea7481c9
2 changed files with 1 additions and 20 deletions
  1. 1 1
      lib/srdb1/db_ut.c
  2. 0 19
      lib/srdb1/db_ut.h

+ 1 - 1
lib/srdb1/db_ut.c

@@ -31,7 +31,7 @@
  */
  */
 
 
 
 
-#ifdef __OS_darwin
+#if defined (__OS_darwin) || defined (__OS_freebsd)
 #include "../../pvar.h"
 #include "../../pvar.h"
 #endif
 #endif
 
 

+ 0 - 19
lib/srdb1/db_ut.h

@@ -35,25 +35,6 @@
 
 
 #include "../../pvar.h"
 #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_key.h"
 #include "db.h"
 #include "db.h"