summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/append.c4
-rw-r--r--Utilities/cmtar/decode.c4
-rw-r--r--Utilities/cmtar/extract.c4
-rw-r--r--Utilities/cmtar/libtar.c4
-rw-r--r--Utilities/cmtar/util.c4
-rw-r--r--Utilities/cmtar/wrapper.c2
6 files changed, 16 insertions, 6 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c
index 38e8294..14c7362 100644
--- a/Utilities/cmtar/append.c
+++ b/Utilities/cmtar/append.c
@@ -18,7 +18,9 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
# include <libtar/compat.h>
#else
-# include <sys/param.h>
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
#endif
#include <libtar/compat.h>
#include <sys/types.h>
diff --git a/Utilities/cmtar/decode.c b/Utilities/cmtar/decode.c
index d6a48c5..b183010 100644
--- a/Utilities/cmtar/decode.c
+++ b/Utilities/cmtar/decode.c
@@ -17,7 +17,9 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
# include <libtar/compat.h>
#else
-# include <sys/param.h>
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
#endif
#ifndef WIN32
diff --git a/Utilities/cmtar/extract.c b/Utilities/cmtar/extract.c
index 925f621..a584a8f 100644
--- a/Utilities/cmtar/extract.c
+++ b/Utilities/cmtar/extract.c
@@ -28,7 +28,9 @@
# include <direct.h>
#else
# include <utime.h>
-# include <sys/param.h>
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
#endif
#ifdef STDC_HEADERS
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
diff --git a/Utilities/cmtar/util.c b/Utilities/cmtar/util.c
index 31f7fc8..0e23a05 100644
--- a/Utilities/cmtar/util.c
+++ b/Utilities/cmtar/util.c
@@ -23,7 +23,9 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <direct.h>
#else
-#include <sys/param.h>
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
#endif
/* hashing function for pathnames */
diff --git a/Utilities/cmtar/wrapper.c b/Utilities/cmtar/wrapper.c
index b194717..4f1271a 100644
--- a/Utilities/cmtar/wrapper.c
+++ b/Utilities/cmtar/wrapper.c
@@ -17,7 +17,7 @@
#include <libtar/compat.h>
#if defined(HAVE_SYS_PARAM_H)
-#include <sys/param.h>
+# include <sys/param.h>
#endif
#if defined(HAVE_DIRENT_H)
#include <dirent.h>