Bug 5463 – errno undeclared in gzio.c

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2011-01-20T02:48:00Z
Last change time
2015-01-30T00:24:21Z
Assigned to
nobody
Creator
ghaecker

Comments

Comment #0 by ghaecker — 2011-01-20T02:48:53Z
dmd 2.051 Building phobos fails at cc -c -m32 -O3 etc/c/zlib/gzio.c -ogenerated/posix/release/etc/c/zlib/gzio.o with multiple "‘errno’ undeclared" errors. gzio.c is missing errno header #include <errno.h> Also, in etc/c/zlib/linux.mak lines 43 - 47 should be commented out or removed.
Comment #1 by ghaecker — 2011-02-19T00:13:36Z
Same for dmd v2.052
Comment #2 by sanduleac.dan — 2011-06-02T11:14:31Z
Same for DMD 2.053 on Mac OS X. Thanks, your fix made it compile.
Comment #3 by lovelydear — 2012-05-01T07:31:17Z
To close.
Comment #4 by andy — 2015-01-30T00:24:21Z
Compiled ok in 2.0.66.1 Please re-open if you still have problems.