Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zoltan's release doesn't compile on sunos 4.1.2 with zsh mem



> 
> If you enable zsh's mem routines mem.c doesn't compile under sunos
> 4.1.2 and Sun's acc compiler. It claims that malloc, free, etc. are
> being redeclared.
> 
> A long time ago this worked, but not for gcc. Now it works with gcc
> but...
> 
> Carlos

I did not modify anything related to mem.c.  Probably the MALLOC_RET_T is
wrongly defined in mem.c e.g. because _BSD is not defined or STDC_HEADERS is
defined.  Under SunOS 4.1.2 malloc returns (char *).  But ZSH_MEM is only
needed for developers, and thay probably have gcc (if they do not have, it's
better to compile one as soon as possible).

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author