diff options
Diffstat (limited to 'common/diet')
-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 |