[test-suite] r325026 - Include <sys/time.h> to get struct timeval definition

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 09:39:26 PST 2018


Author: dim
Date: Tue Feb 13 09:39:26 2018
New Revision: 325026

URL: http://llvm.org/viewvc/llvm-project?rev=325026&view=rev
Log:
Include <sys/time.h> to get struct timeval definition

Summary:
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.

Reviewers: hfinkel, homerdin

Reviewed By: hfinkel

Subscribers: krytarowski, emaste, llvm-commits

Differential Revision: https://reviews.llvm.org/D43169

Modified:
    test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp

Modified: test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C%2B%2B/CLAMR/partition.cpp?rev=325026&r1=325025&r2=325026&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp (original)
+++ test-suite/trunk/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/partition.cpp Tue Feb 13 09:39:26 2018
@@ -57,6 +57,7 @@
 #include "mpi.h"
 #endif
 
+#include <sys/time.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>




More information about the llvm-commits mailing list