]> granicus.if.org Git - p11-kit/commitdiff
build: Avoid undefined reference to rpc_exec_init
authorDaiki Ueno <dueno@redhat.com>
Wed, 1 Feb 2017 15:39:35 +0000 (16:39 +0100)
committerDaiki Ueno <ueno@gnu.org>
Thu, 16 Feb 2017 15:17:14 +0000 (16:17 +0100)
p11-kit/rpc-transport.c

index 13d13727a60260c97073e05063a802ce6c281c39..c15564ec40ce89c86f65f29baede18507ac0a6b9 100644 (file)
@@ -835,8 +835,8 @@ p11_rpc_transport_new (p11_virtual *virt,
 
 #ifdef OS_WIN32
        p11_message ("Windows not yet supported for remote");
-       return NULL;
-#endif
+       return rpc;
+#else
 
        /* This is a command we can execute */
        if (remote[0] == '|') {
@@ -851,6 +851,7 @@ p11_rpc_transport_new (p11_virtual *virt,
                return_val_if_reached (NULL);
 
        return rpc;
+#endif
 }
 
 void