aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-29 01:43:34 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-29 01:43:34 +0000
commit62f916d18120f71be5862e8b22791ab3a8a5c216 (patch)
treef24d6cd299d1b8f08c2771f8dbf81933a686679c /plugins
parent2654ee5023da500c227d7d8d1ac0f9c35ec8a29c (diff)
downloadmonitoring-plugins-62f916d18120f71be5862e8b22791ab3a8a5c216.tar.gz
Fix two Solaris compile problems
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1462 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 47252aa4..ac3b8339 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -114,6 +114,11 @@
#include <locale.h>
#endif
+/* Fixes "Cannot use swapctl in the large files compilation environment" error on Solaris */
+#ifdef _FILE_OFFSET_BITS
+#undef _FILE_OFFSET_BITS
+#endif
+
#ifdef HAVE_DECL_SWAPCTL
# ifdef HAVE_SYS_SWAP_H
# include <sys/swap.h>