]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_strerror: drop include asm-generic/errno-base.h
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:20:45 +0000 (14:20 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 13:52:03 +0000 (15:52 +0200)
This inclusios has multiple issues:
* It is Linux-only.
* The asm/ namespace is not an offical UAPI.
* Its definitions may be wrong if the architecture does not use it.
* It is unnecessary in the first place.

Drop it, and let errno.h do the job.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/helpers/test_strerror.c

index e0ad21e6d60e2b51119927f053d9e90fc646fe84..1da8b3e982922cf608b00f8ce4237d69ab65adb4 100644 (file)
@@ -7,7 +7,6 @@
  * Copyright (C) 2019 Patrick Steinhardt <ps@pks.im
  */
 
-#include <asm-generic/errno-base.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>