mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
fixed a build problem
This commit is contained in:
parent
843bb3dd59
commit
bb3d4466fb
@ -307,7 +307,7 @@ int _link_r( struct _reent *r, const char *c1, const char *c2 )
|
||||
}
|
||||
|
||||
#include <sys/time.h>
|
||||
#if ELUA_PLATFORM == AVR32
|
||||
#ifdef AVR32
|
||||
int _gettimeofday_r( struct _reent *r, struct timeval *tp, struct timezone *tzp )
|
||||
#else
|
||||
int _gettimeofday_r( struct _reent *r, struct timeval *tv, void *tz )
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
specific_files = "crt0.s trampoline.s platform.c exception.s intc.c pm.c flashc.c pm_conf_clocks.c usart.c gpio.c tc.c"
|
||||
ldscript = "at32uc3a0512.ld"
|
||||
cdefs = cdefs + " -DAVR32"
|
||||
|
||||
# Prepend with path
|
||||
specific_files = " ".join( [ "src/platform/%s/%s" % ( platform, f ) for f in specific_files.split() ] )
|
||||
|
Loading…
x
Reference in New Issue
Block a user