aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-10 10:04:06 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-10 10:04:06 +0200
commit194a5fab69277d9e804a6113b5f676b8666b3a61 (patch)
tree7607a564335f44a74a113d3d5a86b2b3e942b6c3 /src/common
parentCMake: Fix appending to CMAKE_RC_FLAGS. (diff)
downloadxz-194a5fab69277d9e804a6113b5f676b8666b3a61.tar.xz
sysdefs.h: Don't include memory.h anymore even if it were available.
It quite probably was never needed, that is, any system where memory.h was required likely couldn't compile XZ Utils for other reasons anyway. XZ Utils 5.2.6 and later source packages were generated using Autoconf 2.71 which no longer defines HAVE_MEMORY_H. So the code being removed is no longer used anyway.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sysdefs.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h
index df7ecf40..47bcbd97 100644
--- a/src/common/sysdefs.h
+++ b/src/common/sysdefs.h
@@ -149,18 +149,14 @@ typedef unsigned char _Bool;
# define __bool_true_false_are_defined 1
#endif
-// string.h should be enough but let's include strings.h and memory.h too if
-// they exists, since that shouldn't do any harm, but may improve portability.
+// string.h should be enough but let's include strings.h too if it exists
+// since that shouldn't do any harm but may improve portability.
#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
-#ifdef HAVE_MEMORY_H
-# include <memory.h>
-#endif
-
// As of MSVC 2013, inline and restrict are supported with
// non-standard keywords.
#if defined(_WIN32) && defined(_MSC_VER)