s3-perfcount: make it possible to compile the example perfcount daemon.
[kai/samba-autobuild/.git] / examples / perfcounter / perf.h
index 7f06b05027ffb616605cb8bd05d1dbebdc9b4bd8..b2968a08cf7aea4ad601f941fa228f81ff88611c 100644 (file)
 #ifndef __PERF_H__
 #define __PERF_H__
 
+#define _PUBLIC_
+
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif
+
+#if !defined(HAVE_BOOL)
+#ifdef HAVE__Bool
+#define bool _Bool
+#else
+typedef int bool;
+#endif
+#endif
+
+
 #include <stdlib.h>
 #include <time.h>
 #include <math.h>