Skip to content

Commit adef757

Browse files
committed
[rust] Only include cet.h if __CET__ is defined
1 parent 75fef2e commit adef757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/assembly.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef UNWIND_ASSEMBLY_H
1616
#define UNWIND_ASSEMBLY_H
1717

18-
#if (defined(__i386__) || defined(__x86_64__)) && defined(__linux__)
18+
#if defined(__linux__) && defined(__CET__)
1919
#include <cet.h>
2020
#define _LIBUNWIND_CET_ENDBR _CET_ENDBR
2121
#else

0 commit comments

Comments
 (0)