Include sys/time.h for gettimeofday. May fix the build on mips64.

This commit is contained in:
bentley 2020-04-12 04:34:19 +00:00
parent 96e39a5f48
commit 4aaed98e74

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-libretro-common_features_features_cpu_c,v 1.1 2019/08/09 15:55:52 cwen Exp $
$OpenBSD: patch-libretro-common_features_features_cpu_c,v 1.2 2020/04/12 04:34:19 bentley Exp $
ppc fix for:
features_cpu.c:(.text+0x20): undefined reference to `__mftb'
@ -6,7 +6,15 @@ features_cpu.c:(.text+0x20): undefined reference to `__mftb'
Index: libretro-common/features/features_cpu.c
--- libretro-common/features/features_cpu.c.orig
+++ libretro-common/features/features_cpu.c
@@ -39,7 +39,7 @@
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <sys/time.h>
#if defined(_WIN32)
#include <direct.h>
@@ -39,7 +40,7 @@
#include <windows.h>
#endif