Define constants of M_PI & M_PI_2.
diff --git a/include/wine/port.h b/include/wine/port.h
index 8039a87..28c1623 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -27,6 +27,7 @@
#define _GNU_SOURCE /* for pread/pwrite */
#include <fcntl.h>
+#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_DIRECT_H
@@ -116,6 +117,20 @@
# define O_LARGEFILE 0
#endif
+
+/****************************************************************
+ * Constants
+ */
+
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+#ifndef M_PI_2
+#define M_PI_2 1.570796326794896619
+#endif
+
+
/* Macros to define assembler functions somewhat portably */
#ifdef __GNUC__