D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14215 - invalid import in core.sys.linux.stdio
Summary: invalid import in core.sys.linux.stdio
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All Linux
: P1 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 07:42 UTC by Ketmar Dark
Modified: 2015-04-29 17:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ketmar Dark 2015-02-23 07:42:38 UTC
core.sys.linux.stdio imports `size_t` from `core.stdc.stddef`, but there is no `size_t` in that module.

fix:

diff --git a/src/core/sys/linux/stdio.d b/src/core/sys/linux/stdio.d
index 13096f8..f598ace 100644
--- a/src/core/sys/linux/stdio.d
+++ b/src/core/sys/linux/stdio.d
@@ -11,7 +11,7 @@ public import core.sys.posix.stdio;
 import core.sys.posix.sys.types : ssize_t, off64_t = off_t;
 import core.sys.linux.config : __USE_FILE_OFFSET64;
 import core.stdc.stdio : FILE;
-import core.stdc.stddef : wchar_t, size_t;
+import core.stdc.stddef : wchar_t;

 extern(C) nothrow
 {
Comment 1 Joakim 2015-04-29 17:44:46 UTC
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/68b9e9ce325d58812e73ca8f0cd268c05f651d2e
Remove references to importing core.stdc.stddef for size_t or ptrdiff_t

https://github.com/D-Programming-Language/druntime/commit/18d57ffe3eed8674ca2052656bb3f410084379f6
Merge pull request #1232 from joakim-noah/size_t

Fix 14215 - Unnecessary imports of core.stdc.stddef for size_t and ptrdiff_t