From: Lasse Collin Date: Tue, 18 Feb 2020 17:12:35 +0000 (+0200) Subject: Revert the previous commit and add a comment. X-Git-Tag: v5.3.2alpha~77 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fddd31175e74a538997a939d930462fde17d2dd4;p=thirdparty%2Fxz.git Revert the previous commit and add a comment. The previous commit broke crc32_tablegen.c. If the whole package is built without config.h (with defines set on the compiler command line) this should still work fine as long as these headers conform to C99 well enough. --- diff --git a/src/common/tuklib_config.h b/src/common/tuklib_config.h index 8f2e9618..9d470ba7 100644 --- a/src/common/tuklib_config.h +++ b/src/common/tuklib_config.h @@ -1,7 +1,10 @@ -#include "sysdefs.h" - -// sysdefs.h takes care of these. -// #include -// #include -// #include -// #include +// If config.h isn't available, assume that the headers required by +// tuklib_common.h are available. This is required by crc32_tablegen.c. +#ifdef HAVE_CONFIG_H +# include "sysdefs.h" +#else +# include +# include +# include +# include +#endif