Skip to content

Commit

Permalink
examples/testlibpq2.rs only for unix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Aug 21, 2024
1 parent 0b8018a commit 2a1eff3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/testlibpq2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* <https://github.com/postgres/postgres/blob/REL_16_0/src/test/examples/testlibpq2.c>
*/

#[cfg(unix)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
/*
* If the user supplies a parameter on the command line, use it as the
Expand Down Expand Up @@ -90,3 +91,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

Ok(())
}

#[cfg(not(unix))]
fn main() {}

0 comments on commit 2a1eff3

Please sign in to comment.