summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math.c b/math.c
index b3ac188d94..98b327272b 100644
--- a/math.c
+++ b/math.c
@@ -14,6 +14,10 @@
#include <math.h>
#include <errno.h>
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__)
+ extern int signbit(double x);
+#endif
+
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
VALUE rb_mMath;