#162 closed defect (released)
Missing unistd.h on Windows Server 2003 build
| Reported by: | Charlie Hull | Owned by: | Charlie Hull |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | MSVC makefiles | Version: | SVN trunk |
| Severity: | normal | Keywords: | |
| Cc: | Olly Betts, Richard Boulton | Blocked By: | |
| Blocking: | Operating System: | Microsoft Windows |
Description
This is taken from Mingw on CH's PC, but not sure how it got there; need to mod the README and figure out a reliable source for it. It should live in \program files\gnuwin32 as it's the Zlib headers that need it.
Attachments (1)
Change History (10)
comment:1 by , 18 years ago
| Component: | Build system → MSVC makefiles |
|---|
comment:2 by , 18 years ago
| Cc: | added |
|---|
comment:3 by , 18 years ago
I'm using Zlib for Windows from http://gnuwin32.sourceforge.net/packages/zlib.htm (first link, 'complete package except sources'). The compiler error is 'unistd.h not found' or something similar, triggered by line 289 of zconf.h.
comment:4 by , 18 years ago
I suspect that gnuwin32 is intended to be used with a mingw compiler...
I believe MarkH uses the official zlib binary distribution:
comment:5 by , 18 years ago
| Status: | new → assigned |
|---|
by , 18 years ago
| Attachment: | patch9.patch added |
|---|
Patch config.mak and readme to use the Zlib package Mark uses
comment:6 by , 18 years ago
| Cc: | added |
|---|---|
| Resolution: | → worksforme |
| Status: | assigned → closed |
comment:7 by , 18 years ago
| Resolution: | worksforme |
|---|---|
| Status: | closed → reopened |
Reopening to change the resolution.
comment:9 by , 18 years ago
| Operating System: | → Microsoft Windows |
|---|---|
| Resolution: | fixed → released |
Fixed in 1.0.4

Mingw ships its own version of unistd.h for convenience for building code which originated on Unix, but we shouldn't need to rely on it when building with MSVC.
Which zlib download are you using?
And what's the actual compiler error?