From b7bc7f68850d8476c91ec92de290d38dfd278815 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 2 Sep 1996 13:15:01 +0000 Subject: [PATCH] Add cfree, Move to usr/lib/compat --- lib/libfakegnumalloc/Makefile | 3 ++- lib/libfakegnumalloc/fakegnumalloc.c | 11 ++++++++++- lib/libgnumalloc/Makefile | 3 ++- lib/libgnumalloc/cfree.c | 11 ++++++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/lib/libfakegnumalloc/Makefile b/lib/libfakegnumalloc/Makefile index 01fca5686f5..98573e77cf2 100644 --- a/lib/libfakegnumalloc/Makefile +++ b/lib/libfakegnumalloc/Makefile @@ -1,6 +1,7 @@ -# $Id: Makefile,v 1.2 1996/02/12 12:40:04 phk Exp $ +# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $ LIB= fakegnumalloc +LIBDIR= /usr/lib/compat SHLIB_MAJOR= 2 SHLIB_MINOR= 0 SRCS= fakegnumalloc.c diff --git a/lib/libfakegnumalloc/fakegnumalloc.c b/lib/libfakegnumalloc/fakegnumalloc.c index abaf931a710..4554903f3a9 100644 --- a/lib/libfakegnumalloc/fakegnumalloc.c +++ b/lib/libfakegnumalloc/fakegnumalloc.c @@ -1 +1,10 @@ -int fake_a_gnumalloc_lib() { return 1; } +int +fake_a_gnumalloc_lib() +{ +return 1; +} + +void cfree(void *foo) +{ +free(foo); +} diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile index 01fca5686f5..98573e77cf2 100644 --- a/lib/libgnumalloc/Makefile +++ b/lib/libgnumalloc/Makefile @@ -1,6 +1,7 @@ -# $Id: Makefile,v 1.2 1996/02/12 12:40:04 phk Exp $ +# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $ LIB= fakegnumalloc +LIBDIR= /usr/lib/compat SHLIB_MAJOR= 2 SHLIB_MINOR= 0 SRCS= fakegnumalloc.c diff --git a/lib/libgnumalloc/cfree.c b/lib/libgnumalloc/cfree.c index abaf931a710..4554903f3a9 100644 --- a/lib/libgnumalloc/cfree.c +++ b/lib/libgnumalloc/cfree.c @@ -1 +1,10 @@ -int fake_a_gnumalloc_lib() { return 1; } +int +fake_a_gnumalloc_lib() +{ +return 1; +} + +void cfree(void *foo) +{ +free(foo); +}