From b8e376ceb9a72c8d132e21699f11fe2b36b8c68c Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Thu, 24 Apr 1997 20:30:41 +0000 Subject: [PATCH] From: "Pedro J. Lobo" Subject: [PATCHES] Patches for compiling 6.1 on Digital Unix 3.2c Attached to this message are the patches I needed to compile 6.1 cleanly under Digital Unix 3.2c with DEC cc. I hope these are the last ones. At least, the number of files needing a patch has decreased noticeably since I sent my previous patches. Nice work :-) One of the patches is a bug fix, but I'm including it here anyway. With these patches applied, the beast seems to work properly. However, I've done only some preliminary tests. More on this later (but hopefully before the April 30 deadline... :-) --- src/backend/main/main.c | 4 ++-- src/backend/utils/Gen_fmgrtab.sh.in | 8 ++++---- src/backend/utils/adt/cash.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 7887aff3f1..c3bb079339 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.6 1997/04/15 17:39:17 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.7 1997/04/24 20:30:09 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -17,7 +17,7 @@ #include "postgres.h" #ifdef USE_LOCALE - #include +# include #endif #include "miscadmin.h" #include "bootstrap/bootstrap.h" /* for BootstrapMain() */ diff --git a/src/backend/utils/Gen_fmgrtab.sh.in b/src/backend/utils/Gen_fmgrtab.sh.in index cb3ac87dd7..807862a127 100644 --- a/src/backend/utils/Gen_fmgrtab.sh.in +++ b/src/backend/utils/Gen_fmgrtab.sh.in @@ -8,7 +8,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.2 1997/04/09 08:55:32 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.3 1997/04/24 20:30:16 scrappy Exp $ # # NOTES # Passes any -D options on to cpp prior to generating the list @@ -81,7 +81,7 @@ cat > $HFILE <> $HFILE cat >> $HFILE < $TABCFILE < @@ -60,7 +60,7 @@ cash_in(const char *str) char dsymbol, ssymbol, psymbol, nsymbol, csymbol; #ifdef USE_LOCALE - if (lconv == NULL) *lconv = localeconv(); + if (lconv == NULL) lconv = localeconv(); /* frac_digits in the C locale seems to return CHAR_MAX */ /* best guess is 2 in this case I think */ @@ -158,7 +158,7 @@ cash_out(Cash *value) char convention; #ifdef USE_LOCALE - if (lconv == NULL) *lconv = localeconv(); + if (lconv == NULL) lconv = localeconv(); mon_group = *lconv->mon_grouping; comma = *lconv->mon_thousands_sep; -- GitLab