Skip to content

Commit b6d9197

Browse files
author
v01dxyz
committed
CLAMR: Add missing include wrt struct timeval for musl
With musl, mesh.cpp compilation fails as struct timeval is not defined although <time.h> is included before "timer.h" which uses this data type. The reason is with musl contrary to glibc, <time.h> does not include <sys/time.h> (which provides gettimeofday, struct timeval). Fixes llvm/llvm-project#94320
1 parent 610b959 commit b6d9197

File tree

1 file changed

+2
-0
lines changed
  • MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR

1 file changed

+2
-0
lines changed

MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/timer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
#ifndef _TIMER_H
5757
#define _TIMER_H
5858

59+
#include <sys/time.h>
60+
5961
#ifdef __cplusplus
6062
extern "C"
6163
{

0 commit comments

Comments
 (0)