[Openmp-commits] [openmp] r356936 - Fix interoperability test compilation on FreeBSD
Dimitry Andric via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 25 11:37:49 PDT 2019
Author: dim
Date: Mon Mar 25 11:37:49 2019
New Revision: 356936
URL: http://llvm.org/viewvc/llvm-project?rev=356936&view=rev
Log:
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
Modified:
openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
Modified: openmp/trunk/runtime/test/ompt/misc/interoperability.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/ompt/misc/interoperability.cpp?rev=356936&r1=356935&r2=356936&view=diff
==============================================================================
--- openmp/trunk/runtime/test/ompt/misc/interoperability.cpp (original)
+++ openmp/trunk/runtime/test/ompt/misc/interoperability.cpp Mon Mar 25 11:37:49 2019
@@ -3,7 +3,7 @@
#include <iostream>
#include <thread>
-#if !defined(__NetBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <alloca.h>
#else
#include <cstdlib>
More information about the Openmp-commits
mailing list