postgres.git / summary / log / commit / refs
commit c969e30d7d7133f703d44f65e173052a9a259d97
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat Jul 16 15:24:08 2005 +0000
First released in: 7.3.11, 7.4.9
Fix bogus "extern int errno;" in back branches, per Andrew Dunstan.
contrib/seg/segparse.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/seg/segparse.y b/contrib/seg/segparse.y
index 2879ca2cc67..9bd972f2c4d 100644
--- a/contrib/seg/segparse.y
+++ b/contrib/seg/segparse.y
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
+#include <errno.h>
#include <math.h>
#include "segdata.h"
#include "buffer.h"
@@ -18,7 +19,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 */
[parent: 91d381e3c010]