summaryrefslogtreecommitdiff
path: root/databases/postgresql74/patches/patch-al
blob: 35459d7a8ecdcf628e39a9cd8bbacbd5f361c3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-al,v 1.1 2005/11/08 16:40:38 joerg Exp $

--- contrib/seg/segparse.y.orig	2005-11-08 15:18:52.000000000 +0000
+++ contrib/seg/segparse.y
@@ -3,6 +3,7 @@
   
 #include "postgres.h"
 
+#include <errno.h>
 #include <math.h>
 
 #include "segdata.h"
@@ -14,7 +15,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 */