diff options
| author | Dimitry Andric <dimitry@andric.com> | 2019-03-25 18:37:49 +0000 |
|---|---|---|
| committer | Dimitry Andric <dimitry@andric.com> | 2019-03-25 18:37:49 +0000 |
| commit | a70da7f29f9d5f227f12db5eec029f1fa2ab46bb (patch) | |
| tree | 5957b2dfed102f6ba13dc5c8bde9f8c6a8f92be5 /openmp/runtime/test | |
| parent | df32bf6b74039f1fc8c797a1fcaa96b5628be976 (diff) | |
| download | bcm5719-llvm-a70da7f29f9d5f227f12db5eec029f1fa2ab46bb.tar.gz bcm5719-llvm-a70da7f29f9d5f227f12db5eec029f1fa2ab46bb.zip | |
Fix interoperability test compilation on FreeBSD
Summary:
While building the 8.0 releases on FreeBSD, I encountered the following
error in the regression tests, where ompt/misc/interoperability.cpp
failed to compile, with:
```
projects/openmp/runtime/test/ompt/misc/interoperability.cpp:7:10: fatal error: 'alloca.h' file not found
#include <alloca.h>
^~~~~~~~~~
```
Like on NetBSD, alloca(3) is defined in <stdlib.h> instead.
Reviewers: emaste, jlpeyton, krytarowski, mgorny, protze.joachim
Reviewed By: jlpeyton
Subscribers: jdoerfert, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D59736
llvm-svn: 356936
Diffstat (limited to 'openmp/runtime/test')
| -rw-r--r-- | openmp/runtime/test/ompt/misc/interoperability.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/test/ompt/misc/interoperability.cpp b/openmp/runtime/test/ompt/misc/interoperability.cpp index b07814e239c..927669e30db 100644 --- a/openmp/runtime/test/ompt/misc/interoperability.cpp +++ b/openmp/runtime/test/ompt/misc/interoperability.cpp @@ -3,7 +3,7 @@ #include <iostream> #include <thread> -#if !defined(__NetBSD__) +#if !defined(__FreeBSD__) && !defined(__NetBSD__) #include <alloca.h> #else #include <cstdlib> |

