aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgbench/pgbench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index ad55c3cc030..c0e5e24fff4 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -53,6 +53,10 @@
#define INT64_MAX INT64CONST(0x7FFFFFFFFFFFFFFF)
#endif
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
/*
* Multi-platform pthread implementations
*/