From 2a1eff3b619f0206248442a06a9e9b78f17aa473 Mon Sep 17 00:00:00 2001 From: Sanpi Date: Wed, 21 Aug 2024 18:23:31 +0200 Subject: [PATCH] examples/testlibpq2.rs only for unix --- examples/testlibpq2.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/testlibpq2.rs b/examples/testlibpq2.rs index ffc9934..95a44f8 100644 --- a/examples/testlibpq2.rs +++ b/examples/testlibpq2.rs @@ -28,6 +28,7 @@ * */ +#[cfg(unix)] fn main() -> Result<(), Box> { /* * If the user supplies a parameter on the command line, use it as the @@ -90,3 +91,6 @@ fn main() -> Result<(), Box> { Ok(()) } + +#[cfg(not(unix))] +fn main() {}