diff --git a/plugins/common.h b/plugins/common.h
index e55b0bbdbd6dec63eee25c128ab37ff45d6b9851..e3f150f9116047e3dd61f9dc38ce0dc1009e1ff2 100644 (file)
--- a/plugins/common.h
+++ b/plugins/common.h
* 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 <stdlib.h>
#include <errno.h>
+#ifdef HUGE_VAL_NEEDS_MATH_H
+#include <math.h>
+#endif
+
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#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
ERROR = -1
};
+/* AIX seems to have this defined somewhere else */
+#ifndef FALSE
enum {
FALSE,
TRUE
};
+#endif
enum {
STATE_OK,
# define textdomain(Domain)
# define bindtextdomain(Package, Directory)
#endif
+
+/* For non-GNU compilers to ignore __attribute__ */
+#ifndef __GNUC__
+# define __attribute__(x) /* do nothing */
+#endif