Fix bogus "extern int errno;" in back branches, per Andrew Dunstan.
authorTom Lane <[email protected]>
Sat, 16 Jul 2005 15:23:37 +0000 (15:23 +0000)
committerTom Lane <[email protected]>
Sat, 16 Jul 2005 15:23:37 +0000 (15:23 +0000)
contrib/seg/segparse.y

index 67f5b9f43dd51b300915126a6b0eda795ae447f2..8a8b37b2b404421c838048ba8aafea8a7a512352 100644 (file)
@@ -3,6 +3,7 @@
   
 #include "postgres.h"
 
+#include <errno.h>
 #include <math.h>
   
 #include "utils/elog.h"
@@ -17,7 +18,6 @@
 #undef yylex                  /* falure to redefine yylex will result in calling the */
 #define yylex seg_yylex       /* wrong scanner when running inside postgres backend  */
 
-  extern int errno;
   extern int yylex();           /* defined as seg_yylex in segscan.c */
   extern int significant_digits( char *str );    /* defined in seg.c */