aboutsummaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/core/sys/posix/sys/time.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/libdruntime/core/sys/posix/sys/time.d')
-rw-r--r--libphobos/libdruntime/core/sys/posix/sys/time.d26
1 files changed, 26 insertions, 0 deletions
diff --git a/libphobos/libdruntime/core/sys/posix/sys/time.d b/libphobos/libdruntime/core/sys/posix/sys/time.d
index edfd2ec..4c82930 100644
--- a/libphobos/libdruntime/core/sys/posix/sys/time.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/time.d
@@ -163,6 +163,32 @@ else version (NetBSD)
int setitimer(int, in itimerval*, itimerval*);
int utimes(in char*, ref const(timeval)[2]);
}
+else version (OpenBSD)
+{
+ struct timeval
+ {
+ time_t tv_sec;
+ suseconds_t tv_usec;
+ }
+
+ struct itimerval
+ {
+ timeval it_interval;
+ timeval it_value;
+ }
+
+ // non-standard
+ struct timezone_t
+ {
+ int tz_minuteswest;
+ int tz_dsttime;
+ }
+
+ int getitimer(int, itimerval*);
+ int gettimeofday(timeval*, timezone_t*);
+ int setitimer(int, in itimerval*, itimerval*);
+ int utimes(in char*, ref const(timeval)[2]);
+}
else version (DragonFlyBSD)
{
struct timeval