aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-02-20 18:54:04 +0200
committerLasse Collin <lasse.collin@tukaani.org>2020-03-11 12:05:57 +0200
commit641042e63f665f3231c2fd1241fd3dddda3fb313 (patch)
treeb5fc46a2ebb4abdbde25bfdf77b3b07df9a512c0
parentsysdefs.h: Omit the conditionals around string.h and limits.h. (diff)
downloadxz-641042e63f665f3231c2fd1241fd3dddda3fb313.tar.xz
tuklib_exit: Add missing header.
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.
-rw-r--r--src/common/tuklib_exit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tuklib_exit.c b/src/common/tuklib_exit.c
index c393be64..aa55620e 100644
--- a/src/common/tuklib_exit.c
+++ b/src/common/tuklib_exit.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include "tuklib_gettext.h"
#include "tuklib_progname.h"