]> sjero.net Git - wget/commitdiff
[svn] Fix compilation of alloca.c under tcc.
authorhniksic <devnull@localhost>
Fri, 8 Apr 2005 23:09:09 +0000 (16:09 -0700)
committerhniksic <devnull@localhost>
Fri, 8 Apr 2005 23:09:09 +0000 (16:09 -0700)
src/ChangeLog
src/alloca.c

index 35c7fdfc6b4984c194e31f419a3c6b6547336cf7..43d7494f49bd68963203a2005d5055d4f61e30ff 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-09  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * alloca.c: Include wget.h to be able to use xmalloc.  In addition
+       to defining malloc to xmalloc, also define free to xfree.
+
 2005-04-09  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * http-ntlm.c (ntlm_output): Use "char", not "unsigned char" for
index c1699c42d2c9d23b29a513645a275d4606631dbd..0626e35edd4b3ebd5c95f354f23a1955621d1e4d 100644 (file)
@@ -88,7 +88,9 @@ typedef char *pointer;
    Callers below should use malloc.  */
 
 #ifndef emacs
+#include "wget.h"
 #define malloc xmalloc
+#define free xfree
 #endif
 extern pointer malloc ();