Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc: re-export libc properly #288

Merged
merged 1 commit into from
Mar 11, 2016
Merged

Commits on Mar 11, 2016

  1. libc: re-export libc properly

    With rust 1.7, the following warning was being emitted by the compiler:
    
        warning: `pub extern crate` does not work as expected and should
        not be used. Likely to become an error. Prefer `extern crate` and
        `pub use`.
    
    Based on rust-lang/rust#26775 it appears that
    the warning in 1.7 which was to be escalated to an error is going away
    but in older versions of rust it is still the case that `pub extern crate`
    will not work as expected.  Instead, we use a somewhat creative hack to
    export the libc root as a module in nix.  Down the line, it may make
    sense to either eliminate the need to export libc (by chaning the ioctl
    macros) or to move toward deprecated older versions of rustc.
    
    Signed-off-by: Paul Osborne <osbpau@gmail.com>
    posborne committed Mar 11, 2016
    Configuration menu
    Copy the full SHA
    f590b35 View commit details
    Browse the repository at this point in the history