detect if stdint.h is available. if not, use inttypes. this should fix #239 and make...
[rrdtool.git] / src / rrd_daemon.c
index b4bc1ee..16b5df5 100644 (file)
 #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