HomeFreeBSD

aesni(4): Fix GCC build

Description

aesni(4): Fix GCC build

The GCC xmmintrin.h header brokenly includes mm_malloc.h unconditionally.
(The Clang version of xmmintrin.h only includes mm_malloc.h if not compiling
in standalone mode.)

Hack around GCC's broken header by defining the include guard macro ahead of
including xmmintrin.h.

Reported by: lwhsu, jhb
Tested by: lwhsu
Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on Sep 29 2017, 7:56 PM
Parents
rGdc8507e1f71a: __setrunelocale: Fix asprintf(3) failure not returning an error.
Branches
Unknown
Tags
Unknown

Event Timeline