From e3f56b8110fb6ebe4f895c65faaba57e1ad6a19c Mon Sep 17 00:00:00 2001 From: Grant Moyer Date: Fri, 25 Feb 2022 13:13:43 -0500 Subject: [PATCH] Don't use gnu extensions which are too new for debian and ubuntu --- src/modules/keyboard_state.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/modules/keyboard_state.cpp b/src/modules/keyboard_state.cpp index 63871fd4..57defa76 100644 --- a/src/modules/keyboard_state.cpp +++ b/src/modules/keyboard_state.cpp @@ -24,13 +24,6 @@ class errno_error : public std::runtime_error { std::string error_msg{msg}; error_msg += ": "; -#ifdef _GNU_SOURCE - // strerrorname_np gets the error code's name; it's nice to have, but it's a GNU extension - const auto errno_name = strerrorname_np(err); - error_msg += errno_name; - error_msg += " "; -#endif - // strerror(3) man page says 1024 should be a big enough buffer to avoid ERANGE char errno_str[1024] = {}; strerror_r(err, errno_str, sizeof errno_str);