bsp,am: fix missing type definition

This commit is contained in:
Zihao Yu 2023-05-24 10:37:02 +08:00
parent e5c449a67d
commit 29b3356427
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,3 @@
typedef long ssize_t;
typedef long suseconds_t;
typedef unsigned long useconds_t;