diff options
author | Günther Deschner <gd@samba.org> | 2010-07-16 23:00:17 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-07-16 23:00:17 +0200 |
commit | 5815119cb0ca56f5155936d99dae5fc9e4a53db8 (patch) | |
tree | 64125cc33559b7ed1372650a09a34e47d7f7b9da /examples/perfcounter | |
parent | 3b0c87cf319b562aeb1f5e12135905d6d57e926f (diff) | |
download | samba-5815119cb0ca56f5155936d99dae5fc9e4a53db8.tar.gz |
s3-perfcount: make it possible to compile the example perfcount daemon.
Guenther
Diffstat (limited to 'examples/perfcounter')
-rw-r--r-- | examples/perfcounter/perf.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/perfcounter/perf.h b/examples/perfcounter/perf.h index 7f06b05027f..b2968a08cf7 100644 --- a/examples/perfcounter/perf.h +++ b/examples/perfcounter/perf.h @@ -21,6 +21,21 @@ #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> |