瀏覽代碼

sndio: remove strerror_l

Replace it with the typical strerror for platforms that dont have full
posix support (freebsd/clang).

fixes #3835
Kurt Kartaltepe 4 年之前
父節點
當前提交
f80421a76d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/sndio/sndio-input.c

+ 1 - 1
plugins/sndio/sndio-input.c

@@ -38,7 +38,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define berr(level, msg, ...)                                   \
 	do {                                                    \
-		const char *errstr = strerror_l(errno, NULL);   \
+		const char *errstr = strerror(errno);           \
 		blog(level, msg ": %s", ##__VA_ARGS__, errstr); \
 	} while (0)