Skip to content

i686-linux-android libc and libstd disagree on c_char #561

Closed
@dten

Description

@dten

So std lib seems to be wrong about this. but what to do? a lot of things just don't compile (looking at openssl) because of CString and CStr

libstd says that c_char is u8
https://github.com/rust-lang/rust/blob/b1363a73ede57ae595f3a1be2bb75d308ba4f7f6/src/libstd/os/raw.rs#L15

libc says that c_char is i8
https://github.com/rust-lang/libc/blob/master/src/unix/notbsd/android/b32/x86.rs#L1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions