Skip to content

Commit bb21d77

Browse files
committed
avr patch
1 parent ad1fd32 commit bb21d77

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/core/asn1.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifdef __AVR__
18+
#define BYTE_ORDER 0xaa55
19+
#define LITTLE_ENDIAN 0xaa55
20+
#define BIG_ENDIAN 0x55aa
21+
#else
1722
#include <endian.h>
23+
#endif
1824
#include <nat20/asn1.h>
1925
#include <nat20/oid.h>
2026
#include <nat20/stream.h>
@@ -186,7 +192,7 @@ static void n20_asn1_integer_internal_content(n20_stream_t *const s, void *ctx)
186192
// compilation unit and assure that it is never NULL.
187193
uint8_t const *msb = number->n.buffer;
188194
uint8_t const *end = number->n.buffer + number->n.size;
189-
ssize_t inc = 1;
195+
int inc = 1;
190196
int add_extra = 0;
191197
uint8_t extra = 0;
192198

0 commit comments

Comments
 (0)