summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b44957b)
raw | patch | inline | side by side (parent: b44957b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 Aug 2009 09:01:16 +0000 (09:01 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 25 Aug 2009 09:01:16 +0000 (09:01 +0000) |
program/configure.ac | patch | blob | history | |
program/src/rrd_client.h | patch | blob | history | |
program/src/rrd_daemon.c | patch | blob | history |
diff --git a/program/configure.ac b/program/configure.ac
index 49f1281d98bac506cc302f0c4755f4fdd7eb6015..65aa310ca36e16e9e44c862f3a67989550412da4 100644 (file)
--- a/program/configure.ac
+++ b/program/configure.ac
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
-AC_CHECK_HEADERS(libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h)
+AC_CHECK_HEADERS(stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
index 90b78f8df989eab0b76a509ef21dc116ccbeb25e..787c2b6d649dcec54f6e171b6eba40c5a9c1d251 100644 (file)
--- a/program/src/rrd_client.h
+++ b/program/src/rrd_client.h
#ifndef __RRD_CLIENT_H
#define __RRD_CLIENT_H 1
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
+#include "../win32/config.h"
+#else
+#ifdef HAVE_CONFIG_H
+#include "../rrd_config.h"
+#endif
+#endif
+
#ifndef WIN32
-#include <stdint.h>
+# ifdef HAVE_STDINT_H
+# include <stdint.h>
+# else
+# ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+# else
+# error "you should have stdint.h or inttypes.h to compile this"
+# endif
+# endif
#else
# include <stdlib.h>
typedef signed char int8_t;
index b4bc1ee06ef0319ce83eb79797857ea88de4f0c7..16b5df59ebf769d8d4884d5a885feb339347558d 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
#include <stdlib.h>
#ifndef WIN32
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <unistd.h>
#include <strings.h>
#include <inttypes.h>
-# include <sys/socket.h>
+#include <sys/socket.h>
#else