Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 7a323fc

Browse files
committed
project: Fix incorrect inclusion of sys/time.h.
1 parent bb09527 commit 7a323fc

4 files changed

Lines changed: 4 additions & 74 deletions

File tree

SMP/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ implementations */
255255
/* #undef HAVE_GETRUSAGE */
256256

257257
/* Define to 1 if you have the `gettimeofday' function. */
258-
#define HAVE_GETTIMEOFDAY 1
258+
/* #undef HAVE_GETTIMEOFDAY */
259259

260260
/* Defined if underlying assembler is compatible with Intel syntax assembly
261261
implementations */

SMP/gcrypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <sys/types.h>
3434

3535
#if defined _WIN32 || defined __WIN32__
36-
#include <sys/time.h>
36+
#include <basetsd.h>
3737
# ifndef __GNUC__
3838
typedef SSIZE_T ssize_t;
3939
typedef int pid_t;

SMP/sys/time.h

Lines changed: 0 additions & 72 deletions
This file was deleted.

random/random-csprng.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
#include <stdlib.h>
3838
#include <errno.h>
3939
#include <string.h>
40+
#ifdef HAVE_SYS_TIME_H
4041
#include <sys/time.h>
42+
#endif
4143
#include <sys/types.h>
4244
#include <sys/stat.h>
4345
#ifdef HAVE_UNISTD_H

0 commit comments

Comments
 (0)