Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ec5e0ef7
Commit
ec5e0ef7
authored
May 16, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize Win32 includes to only include <port.h> after system includes
under Win32. Also fix other compile issues.
parent
5e04f385
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
9 deletions
+27
-9
configure
configure
+2
-1
configure.in
configure.in
+3
-2
src/include/c.h
src/include/c.h
+8
-1
src/include/port.h
src/include/port.h
+9
-5
src/port/copydir.c
src/port/copydir.c
+5
-0
No files found.
configure
View file @
ec5e0ef7
...
...
@@ -11397,7 +11397,8 @@ esac
# Win32 can't to rename or unlink on an open file
case
$host_os
in
mingw
*
)
LIBOBJS
=
"
$LIBOBJS
dirmod.
$ac_objext
"
LIBOBJS
=
"
$LIBOBJS
copydir.
$ac_objext
"
;;
LIBOBJS
=
"
$LIBOBJS
copydir.
$ac_objext
"
LIBOBJS
=
"
$LIBOBJS
gettimeofday.
$ac_objext
"
;;
esac
if
test
"
$with_readline
"
=
yes
;
then
...
...
configure.in
View file @
ec5e0ef7
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.25
1 2003/05/15 17:59:17
momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.25
2 2003/05/16 01:57:51
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -865,7 +865,8 @@ esac
# Win32 can't to rename or unlink on an open file
case $host_os in mingw*)
AC_LIBOBJ(dirmod)
AC_LIBOBJ(copydir) ;;
AC_LIBOBJ(copydir)
AC_LIBOBJ(gettimeofday) ;;
esac
if test "$with_readline" = yes; then
...
...
src/include/c.h
View file @
ec5e0ef7
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.14
6 2003/05/15 23:39:27 tgl
Exp $
* $Id: c.h,v 1.14
7 2003/05/16 01:57:51 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -52,7 +52,9 @@
#include "pg_config.h"
#include "pg_config_manual.h"
/* must be after pg_config.h */
#ifndef WIN32
#include "pg_config_os.h"
/* must be before any system header files */
#endif
#include "postgres_ext.h"
#include <stdio.h>
...
...
@@ -71,6 +73,11 @@
#include <SupportDefs.h>
#endif
#ifdef WIN32
/* We have to redefine some system functions after they are included above */
#include "pg_config_os.h"
#endif
/* Must be before gettext() games below */
#include <locale.h>
...
...
src/include/port.h
View file @
ec5e0ef7
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: port.h,v 1.
1 2003/05/15 16:35:29
momjian Exp $
* $Id: port.h,v 1.
2 2003/05/16 01:57:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,21 +22,26 @@ int fseeko(FILE *stream, off_t offset, int whence);
off_t
ftello
(
FILE
*
stream
);
#endif
#ifdef WIN32
/*
* Win32 doesn't have reliable rename/unlink during concurrent access
*/
#if
defined(WIN32) && !defined(FRONTEND)
#if
ndef FRONTEND
int
pgrename
(
const
char
*
from
,
const
char
*
to
);
int
pgunlink
(
const
char
*
path
);
#define rename(from, to) pgrename(from, to)
#define unlink(path) pgunlink(path)
#endif
extern
int
copydir
(
char
*
fromdir
,
char
*
todir
);
extern
int
gettimeofday
(
struct
timeval
*
tp
,
struct
timezone
*
tzp
);
#else
/*
* Win32 requires a special close for sockets and pipes, while on Unix
* close() does them all.
*/
#ifndef WIN32
#define closesocket close
#endif
...
...
@@ -45,7 +50,7 @@ int pgunlink(const char *path);
* When necessary, these routines are provided by files in src/port/.
*/
#ifndef HAVE_CRYPT
char
*
crypt
(
const
char
*
key
,
const
char
*
setting
);
extern
char
*
crypt
(
const
char
*
key
,
const
char
*
setting
);
#endif
#ifndef HAVE_FSEEKO
...
...
@@ -90,4 +95,3 @@ extern long random(void);
#ifndef HAVE_SRANDOM
extern
void
srandom
(
unsigned
int
seed
);
#endif
src/port/copydir.c
View file @
ec5e0ef7
...
...
@@ -6,6 +6,11 @@
#include "postgres.h"
#undef mkdir
/* no reason to use that macro because we ignore the 2nd arg */
#include "dirent.h"
int
copydir
(
char
*
fromdir
,
char
*
todir
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment