Skip to content

Commit bfc5ed4

Browse files
authored
include directories so that builds on mac os are successful across broader range os OS/machines
Fixes #103 by specifically including the directory where libproc.h is found, even though it seems some machines don't need to be told where to find it. If this causes problems for anyone then we can always back it out...
1 parent 12240c2 commit bfc5ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66
let bindings = bindgen::builder()
77
.header_contents("libproc_rs.h", "#include <libproc.h>")
88
.layout_tests(false)
9-
.clang_args(&["-x", "c++"])
9+
.clang_args(&["-x", "c++", "-I", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/"])
1010
.generate()
1111
.expect("Failed to build libproc bindings");
1212

0 commit comments

Comments
 (0)