Only activate special trap code on x86
This commit is contained in:
parent
ab625574da
commit
a942603df7
1 changed files with 14 additions and 1 deletions
15
src/trap.c
15
src/trap.c
|
@ -16,6 +16,12 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "trap.h"
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
|
||||
// Only do this on x86 for now
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <link.h>
|
||||
#include <unistd.h>
|
||||
|
@ -28,7 +34,6 @@
|
|||
|
||||
#include <libavutil/sha1.h>
|
||||
|
||||
#include "trap.h"
|
||||
#include "tvhead.h"
|
||||
|
||||
|
||||
|
@ -174,3 +179,11 @@ trap_init(const char *ver)
|
|||
free(binsum);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void
|
||||
trap_init(const char *ver)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue