From c765c61f57aa1076ed4988bf5636d00c477e2969 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 24 Jun 2014 01:03:11 +0200 Subject: [PATCH] Only include the header if available The header is non-standard and usually not required if it isn't available. This change is released under the MIT/X11 license. --- mono/io-layer/processes.c | 2 ++ support/grp.c | 2 ++ support/sys-statvfs.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/mono/io-layer/processes.c b/mono/io-layer/processes.c index afbe440448bf6..c65bf23813c0c 100644 --- a/mono/io-layer/processes.c +++ b/mono/io-layer/processes.c @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_PARAM_H #include +#endif #include #ifdef HAVE_SYS_MKDEV_H diff --git a/support/grp.c b/support/grp.c index 09aff343270d7..827bc550d938f 100644 --- a/support/grp.c +++ b/support/grp.c @@ -8,7 +8,9 @@ */ #include +#ifdef HAVE_SYS_PARAM_H #include +#endif #include #include #include diff --git a/support/sys-statvfs.c b/support/sys-statvfs.c index 2096dcff25167..e03152a773d95 100644 --- a/support/sys-statvfs.c +++ b/support/sys-statvfs.c @@ -25,7 +25,9 @@ #endif /* def HAVE_SYS_STATVFS_H */ #ifdef HAVE_GETFSSTAT +#ifdef HAVE_SYS_PARAM_H #include +#endif #include #include #include /* for pathconf */