]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tuklib_exit: Add missing header.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Feb 2020 16:54:04 +0000 (18:54 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Feb 2020 16:54:04 +0000 (18:54 +0200)
strerror() needs <string.h> which happened to be included via
tuklib_common.h -> tuklib_config.h -> sysdefs.h if HAVE_CONFIG_H
was defined. This wasn't tested without config.h before so it
had worked fine.

src/common/tuklib_exit.c

index c393be64d7544cfd32f15310172e79e1878a7a6b..aa55620ec563c51ec96bc5d6095668fcaedf247c 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "tuklib_gettext.h"
 #include "tuklib_progname.h"