]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tuklib: Omit an unneeded <sys/types.h> from a tests.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Feb 2020 21:29:35 +0000 (23:29 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Feb 2020 21:34:58 +0000 (23:34 +0200)
tuklib_cpucores.c and tuklib_physmem.c don't include <sys/types.h>
even via other files in this package, so clearly that header isn't
needed in the tests either (no one has reported build problems due
to a missing header in a .c file).

m4/tuklib_cpucores.m4
m4/tuklib_physmem.m4

index a2b09a72380cb1b92f3d64d38ab51950cc870a09..63063982649708f7913a94efdffcac9f80abd90d 100644 (file)
@@ -95,7 +95,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 #ifdef __QNX__
 compile error
 #endif
-#include <sys/types.h>
 #ifdef HAVE_SYS_PARAM_H
 #      include <sys/param.h>
 #endif
index 8a57ca29876b4f9a32631ec139bcfda9dbdbc5a0..593178594ca1b1af993b117b4635d779c9daa26d 100644 (file)
@@ -88,7 +88,6 @@ main(void)
 ]])], [tuklib_cv_physmem_method=sysconf], [
 
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
-#include <sys/types.h>
 #ifdef HAVE_SYS_PARAM_H
 #      include <sys/param.h>
 #endif