We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2454a18 commit 58d15ecCopy full SHA for 58d15ec
openbsd-compat/bsd-misc.c
@@ -24,6 +24,7 @@
24
#ifdef HAVE_SYS_TIME_H
25
# include <sys/time.h>
26
#endif
27
+#include <sys/utime.h>
28
29
#include <string.h>
30
#include <signal.h>
@@ -105,6 +106,8 @@ const char *strerror(int e)
105
106
107
108
#ifndef HAVE_UTIMES
109
+
110
111
int utimes(char *filename, struct timeval *tvp)
112
{
113
struct utimbuf ub;
@@ -176,7 +179,16 @@ int usleep(unsigned int useconds)
176
179
return nanosleep(&ts, NULL);
177
180
}
178
181
182
+#else
183
+#if !defined(HAVE_USLEEP)
184
+int usleep(unsigned int useconds)
185
+{
186
+ Sleep(useconds/1000);
187
+ return 1;
188
+}
189
190
+#endif
191
192
193
#ifndef HAVE_TCGETPGRP
194
pid_t
0 commit comments