Skip to content

Commit c560d6f

Browse files
brad0tstellar
authored andcommitted
[flang] Fix building on aarch64 *BSD and musl libc after 9d8dc45 (#125183)
The fpu_control.h header appears to be GLIBC specific. (cherry picked from commit e31c6c9)
1 parent d5333f2 commit c560d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/runtime/exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "flang/Runtime/exceptions.h"
1212
#include "terminator.h"
1313
#include <cfenv>
14-
#if defined(__aarch64__) && !defined(_WIN32)
14+
#if defined(__aarch64__) && defined(__GLIBC__)
1515
#include <fpu_control.h>
1616
#elif defined(__x86_64__) && !defined(_WIN32)
1717
#include <xmmintrin.h>

0 commit comments

Comments
 (0)