WLBF / single-instance

A rust library for single instance application.
MIT License
34 stars 8 forks source link

got "no `__errno_location` in the root" #1

Closed betzerra closed 5 years ago

betzerra commented 5 years ago

I'm trying to run the crate from macOS. Thanks!

WLBF commented 5 years ago

I have no macOS device for now. So you may have to solve it by yourself. The src is pretty simple.

betzerra commented 5 years ago

will try :-)

xbee commented 5 years ago

error

Compiling single-instance v0.1.1 (/../single-instance)
error[E0432]: unresolved import `libc::__errno_location`
  --> src/lib.rs:84:54
   |
84 |     use libc::{flock, LOCK_EX, LOCK_NB, EWOULDBLOCK, __errno_location};
   |                                                      ^^^^^^^^^^^^^^^^ no `__errno_location` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `single-instance`.
WLBF commented 5 years ago

2