X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=80d86ba8e698ac0c039122b22e9f452945cd7070;hb=d22aee658210cbfa44caa39f302aa9331d4eab82;hp=282e632520ce08cb1a755588c251a10f53aa4e24;hpb=63cbff115ba03717e81087d1419fc07c24d205c2;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 282e6325..80d86ba8 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -122,6 +122,24 @@ # endif /* !defined(isnan) */ #endif /* NAN_ZERO_ZERO */ +#if HAVE_ENDIAN_H +# include +#endif + +#ifndef BYTE_ORDER +# ifdef __BYTE_ORDER +# define BYTE_ORDER __BYTE_ORDER +# endif +#endif +#ifndef BIG_ENDIAN +# ifdef __BIG_ENDIAN +# define BIG_ENDIAN __BIG_ENDIAN +# endif +#endif +#if !defined(BYTE_ORDER) || !defined(BIG_ENDIAN) +# error "Cannot determine byte order" +#endif + #if HAVE_DIRENT_H # include # define NAMLEN(dirent) strlen((dirent)->d_name) @@ -153,15 +171,9 @@ # include #endif -#if HAVE_RRD_H -# include -#endif #if HAVE_PTH_H # include #endif -#if HAVE_STATGRAB_H -# include -#endif #if HAVE_SENSORS_SENSORS_H # include #endif @@ -198,11 +210,6 @@ #define PLUGINDIR PREFIX "/lib/" PACKAGE_NAME #endif -#define MODE_SERVER 0x01 -#define MODE_CLIENT 0x02 -#define MODE_LOCAL 0x04 -#define MODE_LOG 0x08 - #ifndef COLLECTD_GRP_NAME # define COLLECTD_GRP_NAME "collectd" #endif