summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/libtar.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-10 15:49:02 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-10 15:49:02 (GMT)
commitfb643cd48329d2b8d4d79dbb6934b715e0db8dc7 (patch)
tree4f15b7fcf964dae834df8754bb9d9633d8a5c5ae /Utilities/cmtar/libtar.c
parent312ca9670f4061660c68f2ca879ba5dcd18ec1a1 (diff)
downloadCMake-fb643cd48329d2b8d4d79dbb6934b715e0db8dc7.zip
CMake-fb643cd48329d2b8d4d79dbb6934b715e0db8dc7.tar.gz
CMake-fb643cd48329d2b8d4d79dbb6934b715e0db8dc7.tar.bz2
COMP: Use HAVE_SYS_PARAM_H properly in libtar
The value is computed by a try-compile for libtar. This teaches the sources to actually use the result.
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r--Utilities/cmtar/libtar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c
index b509349..0d031b7 100644
--- a/Utilities/cmtar/libtar.c
+++ b/Utilities/cmtar/libtar.c
@@ -19,7 +19,9 @@
#include <libtar/compat.h>
#include <io.h>
#else
-#include <sys/param.h>
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
#endif
#ifdef STDC_HEADERS