vcpkg/ports/hwloc/fix_wrong_ifdef.patch
Alexander Neumann fdac8bfc1b
[hwloc] Update to 2.5 and switch to make (#20905)
* hwloc try and error

* hwloc fix build.

* format manifest

* version stuff

* remove supports expression. Copy COPYING from src dir

* format manifest

* overwrite version

* update ci baseline
hpx uses _mm_pause which seems to be undefined on arm64
maybe hpx requires a supports field?

* switch to version in manifest

* version stuff

* add maintainer

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>

* version stuff

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2021-10-27 23:05:10 -07:00

14 lines
521 B
Diff

diff --git a/hwloc/topology.c b/hwloc/topology.c
index 01e5a863c..211f2cbd1 100644
--- a/hwloc/topology.c
+++ b/hwloc/topology.c
@@ -69,7 +69,7 @@
* it will break in cygwin, we'll have to use both putenv() and SetEnvironmentVariable().
* Hopefully L0 will be provide a way to enable Sysman without env vars before it happens.
*/
-#ifdef HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR
+#if HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR
static void hwloc_constructor(void) __attribute__((constructor));
static void hwloc_constructor(void)
{