freebsd-ports/security/heaan/files/patch-TimeUtils.h
Piotr Kubaj d976f5199d security/heaan: fix build on GCC architectures
Patch created manually, because WRKSRC differs.
Add include sys/time.h:
In file included from ../src/TestScheme.cpp:20:
../src/TimeUtils.h:20:17: error: field 'startTime' has incomplete type 'timeval'
   20 |  struct timeval startTime, stopTime;
      |                 ^~~~~~~~~

MFH:		2020Q4 (fix build blanket)
2020-10-12 07:26:20 +00:00

10 lines
260 B
C++

--- ../src/TimeUtils.h.orig 2020-10-12 09:20:15.992285000 +0200
+++ ../src/TimeUtils.h 2020-10-12 09:20:25.674915000 +0200
@@ -8,6 +8,7 @@
#ifndef HEAAN_TIMEUTILS_H_
#define HEAAN_TIMEUTILS_H_
+#include <sys/time.h>
#include <iostream>
struct timeval;