# HG changeset patch # User Dave Love # Date 966262544 0 # Node ID dbc1e69a89a9627c35491dcdf465ecb456e9a9f9 # Parent 6134e3d42e3b5e951c68ab0a720afc021064d833 [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk. [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. (lisp_free): Declare and make static. diff -r 6134e3d42e3b -r dbc1e69a89a9 src/alloc.c --- a/src/alloc.c Mon Aug 14 13:18:04 2000 +0000 +++ b/src/alloc.c Mon Aug 14 14:15:44 2000 +0000 @@ -43,7 +43,11 @@ #include "syssignal.h" #include -extern char *sbrk (); +#ifdef HAVE_UNISTD_H +#include +#else +extern POINTER_TYPE *sbrk (); +#endif #ifdef DOUG_LEA_MALLOC @@ -283,6 +287,7 @@ struct mem_node; static void *lisp_malloc P_ ((size_t, enum mem_type)); +static void lisp_free P_ ((POINTER_TYPE *)); static void mark_stack P_ ((void)); static void init_stack P_ ((Lisp_Object *)); static int live_vector_p P_ ((struct mem_node *, void *)); @@ -512,7 +517,7 @@ /* Free BLOCK. This must be called to free memory allocated with a call to lisp_malloc. */ -void +static void lisp_free (block) POINTER_TYPE *block; {