diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pgbench/pgbench.c | 1 | ||||
-rw-r--r-- | src/include/utils/float.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 820b1ea09f5..18d9c94ebd3 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -68,6 +68,7 @@ #include "port/pg_bitutils.h" #include "portability/instr_time.h" +/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */ #ifndef M_PI #define M_PI 3.14159265358979323846 #endif diff --git a/src/include/utils/float.h b/src/include/utils/float.h index 61d40af2a30..7529899d63c 100644 --- a/src/include/utils/float.h +++ b/src/include/utils/float.h @@ -17,8 +17,8 @@ #include <math.h> +/* X/Open (XSI) requires <math.h> to provide M_PI, but core POSIX does not */ #ifndef M_PI -/* From my RH5.2 gcc math.h file - thomas 2000-04-03 */ #define M_PI 3.14159265358979323846 #endif |