[Rpm-maint] [rpm-software-management/rpm] build: Add missing ifdef to conditionalize omp.h include statement (#907)

Neal Gompa (ニール・ゴンパ) notifications at github.com
Sun Oct 20 00:21:57 UTC 2019


In 464d21dc8c176222c6586e2ee503fec6207f0d29, support for building RPM
without OpenMP was conditionalized on the ENABLE_OPENMP define being
set by the compiler. However, the include statement for omp.h in
parseSpec.c was not conditionalized as everything else was.

Because the conditional was previously missing, RPM fails to build
in environments where OpenMP is completely unavailable. This is the
case in environments such as macOS, as Clang does not provide an
OpenMP implementation there.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/907

-- Commit Summary --

  * build: Add missing ifdef to conditionalize omp.h include statement

-- File Changes --

    M build/parseSpec.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/907.patch
https://github.com/rpm-software-management/rpm/pull/907.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/907
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191019/92aa077b/attachment.html>


More information about the Rpm-maint mailing list