[Libguestfs] [PATCH libnbd 2/5] interop: Allow -DEXPORT_NAME to be defined optionally.

Richard W.M. Jones rjones at redhat.com
Tue Sep 17 22:35:31 UTC 2019


Neutral refactoring.
---
 interop/interop.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/interop/interop.c b/interop/interop.c
index a3ab39b..0b7b1a5 100644
--- a/interop/interop.c
+++ b/interop/interop.c
@@ -66,10 +66,12 @@ main (int argc, char *argv[])
     goto out;
   }
 
+#ifdef EXPORT_NAME
   if (nbd_set_export_name (nbd, EXPORT_NAME) == -1) {
     fprintf (stderr, "%s\n", nbd_get_error ());
     goto out;
   }
+#endif
 
 #if CERTS || PSK
   /* Require TLS on the handle and fail if not available or if the
-- 
2.23.0




More information about the Libguestfs mailing list