Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecd8537

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 exportedfrom readline -> added to include/port/win.hchanges to pg_id:- include of <getopt.h>- add .exe when installingI think there is a problem with calling the regress tests on WinNT - itshould be called with PORTNAME not HOST as the parameter to regress.sh orthe check when to add "-h localhost" to psql has to be changed. Now it ischecked against the PORTNAME.The results of the regress tests were OK with expected failures ;-)Daniel Horak
1 parent3dec141 commitecd8537

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
dependdep:
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+
#ifdefHAVE_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/0723: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
#defineDEFAULT_PAGER "more"
29+
#else
30+
#defineDEFAULT_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
#definesys_nerr _sys_nerr
1616
#endif
17+
18+
/* not exported in readline.h */
19+
char*filename_completion_function();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp