summaryrefslogtreecommitdiff
path: root/contrib/seg/segparse.y
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/seg/segparse.y')
-rw-r--r--contrib/seg/segparse.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/seg/segparse.y b/contrib/seg/segparse.y
index adce19c517..3c2d6c28c0 100644
--- a/contrib/seg/segparse.y
+++ b/contrib/seg/segparse.y
@@ -11,6 +11,10 @@
#include "postgres.h"
#include "utils/elog.h"
+#ifdef __CYGWIN__
+#define HUGE HUGE_VAL
+#endif /* __CYGWIN__ */
+
#undef yylex /* falure to redefine yylex will result in calling the */
#define yylex seg_yylex /* wrong scanner when running inside postgres backend */