]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
hurd: do not include sys/prctl.h when it is not available
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 22 Jul 2025 11:22:49 +0000 (13:22 +0200)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Tue, 22 Jul 2025 11:41:16 +0000 (13:41 +0200)
lib/idmapping.c

index e70a037b72343025ee67d885a4fac80811370972..e55de97fbfc586797d918dc72cbb36ead4bbbafc 100644 (file)
 #include <stdlib.h>
 #include <stdio.h>
 #include <strings.h>
-#include <sys/prctl.h>
 #if __has_include(<sys/capability.h>)
 # include <sys/capability.h>
 #endif
+#if __has_include(<sys/prctl.h>)
+# include <sys/prctl.h>
+#endif
 
 #include "alloc/calloc.h"
 #include "alloc/x/xmalloc.h"