bsp,am: fix missing type definition
This commit is contained in:
parent
e5c449a67d
commit
29b3356427
2 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ RTCONFIG_H = rtconfig.h
|
|||
|
||||
NAME = rtthread
|
||||
SRCS =
|
||||
CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__
|
||||
-include $(FILE_MK)
|
||||
include $(AM_HOME)/Makefile
|
||||
|
||||
|
@ -18,6 +19,7 @@ $(FILE_MK): $(RTCONFIG_H)
|
|||
cat $(FILE_TMP) | grep -o '[^ ]*.c$$' | awk '{print "SRCS += " $$1}' > $@
|
||||
cat $(FILE_TMP) | grep 'gcc ' | head -n 1 | grep -o " -I[^ ]*" | awk '{print "CFLAGS += " $$1}' >> $@
|
||||
rm $(FILE_TMP)
|
||||
if [ "`sed -n '3p' $^`"x = x ]; then sed -i -e '2a#include "extra.h"' $^; fi
|
||||
|
||||
menuconfig:
|
||||
scons --menuconfig
|
||||
|
|
3
bsp/abstract-machine/include/extra.h
Normal file
3
bsp/abstract-machine/include/extra.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
typedef long ssize_t;
|
||||
typedef long suseconds_t;
|
||||
typedef unsigned long useconds_t;
|
Loading…
Add table
Reference in a new issue