Skip to content

can you help me get this to work on ESP32? #72

Description

@thomas725

I've tried using your crate to log to a remote syslog server from my ESP32, but with version >=6.0.0 compilation fails like that:

error[E0425]: cannot find value `_SC_HOST_NAME_MAX` in crate `libc`
  --> /home/user/.cargo/registry/src/github.com-1...3/hostname-0.3.1/src/nix.rs:17:38
   |
17 |         unsafe { libc::sysconf(libc::_SC_HOST_NAME_MAX) as libc::size_t };
   |                                      ^^^^^^^^^^^^^^^^^ not found in `libc`

and with version <= 5.0.0 like that:

error[E0609]: no field `tm_gmtoff` on type `tm`
   --> /home/user/.cargo/registry/src/github.com-1...3/time-0.1.45/src/sys.rs:392:30
    |
392 |             let gmtoff = out.tm_gmtoff;
    |                              ^^^^^^^^^ unknown field

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions