Skip to content

Commit

Permalink
[rust] Only include cet.h if __CET__ is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Feb 12, 2022
1 parent 75fef2e commit adef757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libunwind/src/assembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifndef UNWIND_ASSEMBLY_H
#define UNWIND_ASSEMBLY_H

#if (defined(__i386__) || defined(__x86_64__)) && defined(__linux__)
#if defined(__linux__) && defined(__CET__)
#include <cet.h>
#define _LIBUNWIND_CET_ENDBR _CET_ENDBR
#else
Expand Down

0 comments on commit adef757

Please sign in to comment.