Skip to content

Commit 10d1ef6

Browse files
Mac build fix
1 parent b0d1ff9 commit 10d1ef6

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

clientgui/mac/SetupSecurity.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <spawn.h>
3030

3131
#include "file_names.h"
32+
#include "util.h"
3233
#include "mac_util.h"
3334
#include "SetupSecurity.h"
3435

@@ -44,7 +45,6 @@ static OSStatus DoSudoPosixSpawn(const char *pathToTool, char *arg1, char *arg2,
4445
static OSStatus SetFakeMasterNames(void);
4546
#endif
4647
static OSStatus CreateUserAndGroup(char * user_name, char * group_name);
47-
static double dtime(void);
4848
static void SleepSeconds(double seconds);
4949

5050
#if VERBOSE_TEST
@@ -1208,15 +1208,6 @@ void ShowSecurityError(const char *format, ...) {
12081208
va_end(args);
12091209
}
12101210

1211-
1212-
// return time of day (seconds since 1970) as a double
1213-
//
1214-
static double dtime(void) {
1215-
struct timeval tv;
1216-
gettimeofday(&tv, 0);
1217-
return tv.tv_sec + (tv.tv_usec/1.e6);
1218-
}
1219-
12201211
// Uses usleep to sleep for full duration even if a signal is received
12211212
static void SleepSeconds(double seconds) {
12221213
double end_time = dtime() + seconds - 0.01;

0 commit comments

Comments
 (0)