From 7198c7b9f01bbd5e8f8528440d290569e588b260 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 2 Jun 2020 14:44:08 +0200 Subject: Some cleanup and preparation for support for multiple architectures (both host and client) and OSes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- consts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'consts.c') diff --git a/consts.c b/consts.c index 4e68230..8f6e4d9 100644 --- a/consts.c +++ b/consts.c @@ -9,6 +9,7 @@ get_errno_name(int err) #define X(N) if (err == N) return #N; LIST_ERRNOS(X) + #ifdef ALSO_ERESTARTSYS X(ERESTARTSYS) #endif @@ -21,6 +22,7 @@ get_errno_name(int err) #ifdef ALSO_ERESTART_RESTARTBLOCK X(ERESTART_RESTARTBLOCK) #endif + #undef X sprintf(buf, "%i", err); -- cgit v1.2.3-70-g09d2