]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
c.h: make err_nonsys available
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 11 May 2023 10:42:27 +0000 (12:42 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 May 2023 20:31:57 +0000 (22:31 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/c.h
misc-utils/waitpid.c

index 2b70e8d18b491e9233bcdc9351615464068b2f60..f9f90f3bbe0884bc346e994920bbf0a7abf9fdd9 100644 (file)
@@ -294,6 +294,9 @@ void __err_oom(const char *file, unsigned int line)
 }
 #define err_oom()      __err_oom(__FILE__, __LINE__)
 
+#define err_nosys(exitcode, ...) \
+       err(errno == ENOSYS ? EXIT_NOTSUPP : exitcode, __VA_ARGS__)
+
 
 /* Don't use inline function to avoid '#include "nls.h"' in c.h
  */
index b01a2f01310b7645a4ca883a99d21c3e243b1c0f..faf86ab6b79a28ea3258affcdd1e42cd614b8238 100644 (file)
@@ -41,9 +41,6 @@
 
 #define TIMEOUT_SOCKET_IDX UINT64_MAX
 
-#define err_nosys(exitcode, ...) \
-       err(errno == ENOSYS ? EXIT_NOTSUPP : exitcode, __VA_ARGS__)
-
 static bool verbose = false;
 static struct timespec timeout;
 static bool allow_exited = false;