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

Commit9dac526

Browse files
committed
Win32 adjustments for dirmod and configure/configure.in.
1 parent67aa196 commit9dac526

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

‎configure

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12078,12 +12078,15 @@ esac
1207812078
# Win32 can't to rename or unlink on an open file
1207912079
case $host_os in mingw*)
1208012080
LIBOBJS="$LIBOBJS copydir.$ac_objext"
12081-
LIBOBJS="$LIBOBJS dirmod.$ac_objext"
1208212081
LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
1208312082
LIBOBJS="$LIBOBJS pipe.$ac_objext"
1208412083
LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
1208512084
esac
1208612085

12086+
case $host_os in mingw*|cygwin*)
12087+
LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
12088+
esac
12089+
1208712090
if test "$with_readline" = yes; then
1208812091
echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
1208912092
echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6

‎configure.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.312 2004/02/0216:00:49 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.313 2004/02/0222:20:32 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -906,12 +906,15 @@ esac
906906
# Win32 can't to rename or unlink on an open file
907907
case $host_os in mingw*)
908908
AC_LIBOBJ(copydir)
909-
AC_LIBOBJ(dirmod)
910909
AC_LIBOBJ(gettimeofday)
911910
AC_LIBOBJ(pipe)
912911
AC_LIBOBJ(rand) ;;
913912
esac
914913

914+
case $host_os in mingw*|cygwin*)
915+
AC_LIBOBJ(dirmod) ;;
916+
esac
917+
915918
if test "$with_readline" = yes; then
916919
PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
917920
AC_CHECK_FUNCS([rl_completion_matches rl_filename_completion_function])

‎src/include/port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.17 2004/02/0200:17:23 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.18 2004/02/0222:20:33 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -30,7 +30,7 @@ extern intfseeko(FILE *stream, off_t offset, int whence);
3030
externoff_tftello(FILE*stream);
3131
#endif
3232

33-
#if!defined(FRONTEND)&& (defined(WIN32)|| defined(CYGWIN))
33+
#if defined(WIN32)|| defined(CYGWIN)
3434
/*
3535
* Win32 doesn't have reliable rename/unlink during concurrent access
3636
*/

‎src/port/dirmod.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@
1010
*Win32 (NT, Win2k, XP).replace() doesn't work on Win95/98/Me.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.9 2004/02/0200:17:23 momjian Exp $
13+
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.10 2004/02/0222:20:33 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717

1818
#ifndefTEST_VERSION
1919

20+
#if defined(WIN32)|| defined(CYGWIN)
21+
22+
#ifndefFRONTEND
2023
#include"postgres.h"
24+
#else
25+
#include"postgres_fe.h"
26+
#endif
2127

2228
#undef rename
2329
#undef unlink
@@ -95,6 +101,7 @@ pgunlink(const char *path)
95101
return0;
96102
}
97103

104+
#endif
98105

99106
#else
100107

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp