Skip to content

Commit ecd8537

Browse files
committed
I checked the WinNT port yesterday (a few days old snapshot from CVS) and I
am including a patch to get it compile. changes to psql: - added less as default pager when compiling on Cygwin - need to declare "filename_completion_function" because it is not exported from readline -> added to include/port/win.h changes to pg_id: - include of <getopt.h> - add .exe when installing I think there is a problem with calling the regress tests on WinNT - it should be called with PORTNAME not HOST as the parameter to regress.sh or the check when to add "-h localhost" to psql has to be changed. Now it is checked against the PORTNAME. The results of the regress tests were OK with expected failures ;-) Daniel Horak
1 parent 3dec141 commit ecd8537

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/bin/pg_id/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Copyright (C) 2000 by PostgreSQL Global Development Team
77
#
8-
# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.14 2000/01/20 21:51:07 petere Exp $
8+
# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.15 2000/02/09 16:23:42 momjian Exp $
99
#
1010
#-------------------------------------------------------------------------
1111

@@ -20,7 +20,7 @@ pg_id: $(OBJS)
2020
$(CC) -o pg_id $(OBJS) $(LDFLAGS)
2121

2222
install: pg_id
23-
$(INSTALL) $(INSTL_EXE_OPTS) pg_id$(X) $(BINDIR)/pg_id
23+
$(INSTALL) $(INSTL_EXE_OPTS) pg_id$(X) $(BINDIR)/pg_id$(X)
2424

2525
depend dep:
2626
$(CC) -MM $(CFLAGS) *.c >depend

src/bin/pg_id/pg_id.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
*
77
* Copyright (C) 2000 by PostgreSQL Global Development Group
88
*
9-
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.11 2000/01/20 21:51:07 petere Exp $
9+
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.12 2000/02/09 16:23:42 momjian Exp $
1010
*/
1111
#include <c.h>
1212

13+
#ifdef HAVE_GETOPT_H
14+
#include <getopt.h>
15+
#endif
1316
#include <pwd.h>
1417
#include <stdio.h>
1518
#include <stdlib.h>

src/bin/psql/print.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.10 2000/02/07 23:10:06 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.11 2000/02/09 16:23:43 momjian Exp $
77
*/
88
#include <c.h>
99
#include "print.h"
@@ -24,7 +24,11 @@
2424
#include <libpq-fe.h>
2525
#include <postgres_ext.h> /* for Oid type */
2626

27+
#ifndef __CYGWIN__
2728
#define DEFAULT_PAGER "more"
29+
#else
30+
#define DEFAULT_PAGER "less"
31+
#endif
2832

2933

3034

src/include/port/win.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ typedef unsigned char slock_t;
1414
#if (CYGWIN_VERSION_API_MAJOR >= 0) && (CYGWIN_VERSION_API_MINOR >= 8)
1515
#define sys_nerr _sys_nerr
1616
#endif
17+
18+
/* not exported in readline.h */
19+
char * filename_completion_function();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy