From 01be288b18ca993205166c363dd27d20e56f02ec Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 16 Nov 2022 21:21:51 +0100 Subject: [PATCH] Add fallback for EM_AVR OpenBSD still lacks this definition, so provide our own for them. --- src/fileio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index e6d5c037..9c3313b2 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -37,6 +37,9 @@ #ifndef EM_AVR32 # define EM_AVR32 0x18ad /* unofficial */ #endif +#ifndef EM_AVR +# define EM_AVR 83 /* OpenBSD lacks it */ +#endif #endif #include "avrdude.h"