[Zlib-devel] [PATCH] Avoid inclusion of unistd.h in all source files

Mark Adler madler at alumni.caltech.edu
Sun Apr 4 01:12:09 EDT 2010


On Mar 29, 2010, at 1:22 PM, Xin LI wrote:
> Could we do this instead, perhaps, when _STANDALONE (means
> freestanding environment, e.g. boot loader where unistd.h needs to be
> avoided) is defined, don't include unistd.h?

Actually on my to-do list is a define to avoid *all* #includes of libraries in order to build a zlib for embedded applications.  It would remove all the gz* functions and would require the user to provide memory allocation routines.  Would that meet your needs?

Mark





More information about the Zlib-devel mailing list