Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it compile & run on FreeBSD which doesn't have libc::__errno_location() Fix typos in some API call names check for completeness of API & tests in apt-test-coverage
- Loading branch information
1 parent
5057127
commit aa2227f
Showing
16 changed files
with
171 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,4 @@ doxyxml | |
*.3 | ||
cov* | ||
*/target/* | ||
*/Cargo.lock | ||
*/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,6 @@ | ||
extern crate pkg_config; | ||
|
||
fn main() { | ||
if let Err(e) = pkg_config::probe_library("libknet") { | ||
match e { | ||
pkg_config::Error::Failure { .. } => panic! ( | ||
"Pkg-config failed - usually this is because knet development headers are not installed.\n\n\ | ||
For Fedora users:\n# dnf install libknet1-devel\n\n\ | ||
For Debian/Ubuntu users:\n# apt-get install libknet1-dev\n\n\ | ||
pkg_config details:\n{}", | ||
e | ||
), | ||
_ => panic!("{}", e) | ||
} | ||
} | ||
|
||
if let Err(e) = pkg_config::probe_library("libnozzle") { | ||
match e { | ||
pkg_config::Error::Failure { .. } => panic! ( | ||
"Pkg-config failed - usually this is because knet development headers are not installed.\n\n\ | ||
For Fedora users:\n# dnf install libnozzle1-devel\n\n\ | ||
For Debian/Ubuntu users:\n# apt-get install libnozzle1-dev\n\n\ | ||
pkg_config details:\n{}", | ||
e | ||
), | ||
_ => panic!("{}", e) | ||
} | ||
} | ||
|
||
println!("cargo:rustc-link-search=native=../../"); | ||
println!("cargo:rustc-link-lib=knet"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,6 @@ | ||
extern crate pkg_config; | ||
|
||
fn main() { | ||
if let Err(e) = pkg_config::probe_library("libknet") { | ||
match e { | ||
pkg_config::Error::Failure { .. } => panic! ( | ||
"Pkg-config failed - usually this is because knet development headers are not installed.\n\n\ | ||
For Fedora users:\n# dnf install libknet1-devel\n\n\ | ||
For Debian/Ubuntu users:\n# apt-get install libknet1-dev\n\n\ | ||
pkg_config details:\n{}", | ||
e | ||
), | ||
_ => panic!("{}", e) | ||
} | ||
} | ||
|
||
if let Err(e) = pkg_config::probe_library("libnozzle") { | ||
match e { | ||
pkg_config::Error::Failure { .. } => panic! ( | ||
"Pkg-config failed - usually this is because knet development headers are not installed.\n\n\ | ||
For Fedora users:\n# dnf install libnozzle1-devel\n\n\ | ||
For Debian/Ubuntu users:\n# apt-get install libnozzle1-dev\n\n\ | ||
pkg_config details:\n{}", | ||
e | ||
), | ||
_ => panic!("{}", e) | ||
} | ||
} | ||
|
||
println!("cargo:rustc-link-search=native=../../"); | ||
println!("cargo:rustc-link-lib=nozzle"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.