[PATCH] D43169: Include <sys/time.h> to get struct timeval definition
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 11 11:45:54 PST 2018
dim created this revision.
dim added reviewers: hfinkel, homerdin.
Herald added a subscriber: krytarowski.
While building the test suite on FreeBSD, I encountered an error due to
`struct timeval` being unknown in CLAMR's partition.cpp. Add an include
of <sys/time.h> to fix it.
Repository:
rT test-suite
https://reviews.llvm.org/D43169
Files:
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp
Index: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp
===================================================================
--- MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp
+++ MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp
@@ -57,6 +57,7 @@
#include "mpi.h"
#endif
+#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43169.133796.patch
Type: text/x-patch
Size: 395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180211/e19589c4/attachment.bin>
More information about the llvm-commits
mailing list