]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Fix error reporting in virnetlink
authorAndrea Bolognani <abologna@redhat.com>
Tue, 9 Mar 2021 10:18:53 +0000 (11:18 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 9 Mar 2021 12:33:09 +0000 (13:33 +0100)
The preprocessor macro we use to check whether we're on Linux
has not been spelled properly, and so we will always report the
error message intended for other platforms.

Fixes: 879bcee08ce0f91f556fddfe452c3fbed5318468
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetlink.c

index a06195bd007f8bed6d8fddb25f1fc68afcbeff9f..cfb86550a5cbc0901fdbbe8eab215c53bfcc791b 100644 (file)
@@ -1231,7 +1231,7 @@ virNetlinkEventRemoveClient(int watch, const virMacAddr *macaddr,
 
 #else
 
-# if defined(__linux)
+# if defined(__linux__)
 static const char *unsupported = N_("libnl was not available at build time");
 # else
 static const char *unsupported = N_("not supported on non-linux platforms");