File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ extern "C" {
62
62
63
63
#include "util/time.h"
64
64
#include <errno.h>
65
- // #define alloca(size) __builtin_alloca(size)
65
+ #define alloca (size ) __builtin_alloca(size)
66
66
#define TTY_FLUSH ()
67
67
#ifdef putc
68
68
#undef putc
@@ -80,6 +80,7 @@ extern "C" {
80
80
#define EWOULDBLOCK EAGAIN
81
81
82
82
#define hmac_sha1 ax_hmac_sha1
83
+ #define hmac_sha256 ax_hmac_sha256
83
84
#define hmac_md5 ax_hmac_md5
84
85
85
86
#ifndef be64toh
@@ -189,6 +190,15 @@ EXP_FUNC int STDCALL getdomainname(char *buf, int buf_size);
189
190
#endif /* Not Win32 */
190
191
191
192
/* some functions to mutate the way these work */
193
+ inline uint32_t htonl (uint32_t n ){
194
+ return ((n & 0xff ) << 24 ) |
195
+ ((n & 0xff00 ) << 8 ) |
196
+ ((n & 0xff0000UL ) >> 8 ) |
197
+ ((n & 0xff000000UL ) >> 24 );
198
+ }
199
+
200
+ #define ntohl htonl
201
+
192
202
EXP_FUNC int STDCALL ax_open (const char * pathname , int flags );
193
203
194
204
#ifdef CONFIG_PLATFORM_LINUX
You can’t perform that action at this time.
0 commit comments