git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b0c87c
)
s3-perfcount: make it possible to compile the example perfcount daemon.
author
Günther Deschner
<gd@samba.org>
Fri, 16 Jul 2010 21:00:17 +0000
(23:00 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 16 Jul 2010 21:00:17 +0000
(23:00 +0200)
Guenther
examples/perfcounter/perf.h
patch
|
blob
|
history
diff --git
a/examples/perfcounter/perf.h
b/examples/perfcounter/perf.h
index 7f06b05027ffb616605cb8bd05d1dbebdc9b4bd8..b2968a08cf7aea4ad601f941fa228f81ff88611c 100644
(file)
--- 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>