summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-misc.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-03-15 00:34:25 +0100
committerDamien Miller <djm@mindrot.org>2013-03-15 00:34:25 +0100
commitf4db77d7668104c1237636781cfbd59ef30f79b0 (patch)
tree253b719c65b4ca1f94ea2da9e9ea1f249ce7fd66 /openbsd-compat/bsd-misc.h
parent - (djm) [configure.ac] Disable utmp, wtmp and/or lastlog if the platform (diff)
downloadopenssh-f4db77d7668104c1237636781cfbd59ef30f79b0.tar.xz
openssh-f4db77d7668104c1237636781cfbd59ef30f79b0.zip
- (djm) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
Add a usleep replacement for platforms that lack it; ok dtucker
Diffstat (limited to '')
-rw-r--r--openbsd-compat/bsd-misc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index de8367386..430066376 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -1,4 +1,4 @@
-/* $Id: bsd-misc.h,v 1.22 2013/02/15 00:41:36 dtucker Exp $ */
+/* $Id: bsd-misc.h,v 1.23 2013/03/14 23:34:27 djm Exp $ */
/*
* Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org>
@@ -80,6 +80,10 @@ struct timespec {
int nanosleep(const struct timespec *, struct timespec *);
#endif
+#ifndef HAVE_USLEEP
+int usleep(unsigned int useconds);
+#endif
+
#ifndef HAVE_TCGETPGRP
pid_t tcgetpgrp(int);
#endif