]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/c.h: fix inverted #ifdef for sys/auxv.h
authorKarel Zak <kzak@redhat.com>
Wed, 25 Mar 2026 09:51:33 +0000 (10:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Mar 2026 09:51:33 +0000 (10:51 +0100)
The #ifndef was inverted, causing sys/auxv.h to be included when it
is NOT available. Fix to #ifdef.

Addresses: https://github.com/util-linux/util-linux/issues/4144

include/c.h

index e74a4486bf97d722ed85c3af05d616e892c11083..991048dbd17bc1f7d6c3879d5a609fc4cfba0249 100644 (file)
@@ -38,7 +38,7 @@
 # define NAME_MAX PATH_MAX
 #endif
 
-#ifndef HAVE_SYS_AUXV_H
+#ifdef HAVE_SYS_AUXV_H
 # include <sys/auxv.h>
 #endif