Code

Fix to parsing of uptime (Ronald Tin - 1254656)
[nagiosplug.git] / plugins / common.h
index 3e892522f177c6d00b1a6f5bed3b561b1672520e..e10586bc8f4c7f077ed4de0fa6fd80537e50228b 100644 (file)
@@ -28,6 +28,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
+ * $Id$
+ *
  *****************************************************************************/
 
 #include "config.h"
 #include <locale.h>
 #endif
 
+#ifdef HAVE_DECL_SWAPCTL
+# ifdef HAVE_SYS_SWAP_H
+#  include <sys/swap.h>
+# endif
+# ifdef HAVE_SYS_STAT_H
+#  include <sys/stat.h>
+# endif
+# ifdef HAVE_SYS_PARAM_H
+#  include <sys/param.h>
+# endif
+#endif
+
+#ifndef SWAP_CONVERSION
+# define SWAP_CONVERSION 1
+#endif
+
 /*
  *
  * Missing Functions
@@ -166,20 +184,8 @@ enum {
  * Internationalization
  *
  */
-
-#ifdef ENABLE_NLS
-#  include "gettext.h"
-#  define _(String) gettext (String)
-#  define S_(String) gettext (String)
-#  define gettext_noop(String) String
-#  define N_(String) gettext_noop String
-#else
-#  define _(String) (String)
-#  define S_(String) (String)
-#  define N_(String) String
-#  define textdomain(Domain)
-#  define bindtextdomain(Package, Directory)
-#endif
+#include "gettext.h"
+#define _(String) gettext (String)
 
 /* For non-GNU compilers to ignore __attribute__ */
 #ifndef __GNUC__