diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 19:18:45 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 19:18:45 +0800 |
commit | 5eaead97b7f0a42bfea7438a772a8e338834cb0d (patch) | |
tree | 50eafe4c35894714776bdfdee0b40bb26828d8d9 /common | |
parent | 0c859e258ebdfcb14eca5cbe55395c3dd96066a2 (diff) | |
download | pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.gz pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.bz2 pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.lz pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.xz pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.tar.zst pttbbs-5eaead97b7f0a42bfea7438a772a8e338834cb0d.zip |
partial fix dietlibc supplemental library
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4352 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common')
-rw-r--r-- | common/diet/Makefile | 16 | ||||
-rw-r--r-- | common/diet/alloc.c | 3 |
2 files changed, 18 insertions, 1 deletions
diff --git a/common/diet/Makefile b/common/diet/Makefile new file mode 100644 index 00000000..8eb76a43 --- /dev/null +++ b/common/diet/Makefile @@ -0,0 +1,16 @@ +# $Id$ + +MKLINT:=no +MKPROFILE:=no +MKPIC:=no +NOGCCERROR:=yes + +SRCROOT:= ../.. +.include "$(SRCROOT)/pttbbs.mk" + +SRCS:= alloc.c random.c time.c +LIB:= cmdiet + +install: + +.include <bsd.lib.mk> diff --git a/common/diet/alloc.c b/common/diet/alloc.c index de676ce4..d5710433 100644 --- a/common/diet/alloc.c +++ b/common/diet/alloc.c @@ -1,3 +1,4 @@ +#ifdef __dietlibc__ /* * malloc/free by O.Dreesen * @@ -251,4 +252,4 @@ retzero: return ptr; } void* realloc(void* ptr, size_t size) __attribute__((weak,alias("__libc_realloc"))); - +#endif |