#include <time.h>
#include <sys/time.h>
#else
+#ifdef __bsdi__
+#include <sys/time.h>
+#endif
#include <sys/select.h>
#endif
#endif
#include <time.h>
-#if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__DOS__)
+#if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__DOS__) || defined(__bsdi__)
char* strptime(const char *buf, const char *fmt, struct tm *tm);
#endif