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
0476bbbc
Commit
0476bbbc
authored
Aug 29, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several Cygwin fixes pointed out by Reini Urban.
parent
f94aea9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
src/backend/utils/mmgr/mcxt.c
src/backend/utils/mmgr/mcxt.c
+3
-2
src/port/dirmod.c
src/port/dirmod.c
+12
-3
No files found.
src/backend/utils/mmgr/mcxt.c
View file @
0476bbbc
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/mmgr/mcxt.c,v 1.4
7 2004/08/08 06:44:32
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/mmgr/mcxt.c,v 1.4
8 2004/08/29 02:58:50
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -631,7 +631,7 @@ MemoryContextStrdup(MemoryContext context, const char *string)
...
@@ -631,7 +631,7 @@ MemoryContextStrdup(MemoryContext context, const char *string)
}
}
#if
def WIN32
#if
defined(WIN32) || defined(__CYGWIN__)
/*
/*
* Memory support routines for libpgport on Win32
* Memory support routines for libpgport on Win32
*
*
...
@@ -649,6 +649,7 @@ pgport_palloc(Size sz)
...
@@ -649,6 +649,7 @@ pgport_palloc(Size sz)
return
palloc
(
sz
);
return
palloc
(
sz
);
}
}
char
*
char
*
pgport_pstrdup
(
const
char
*
str
)
pgport_pstrdup
(
const
char
*
str
)
{
{
...
...
src/port/dirmod.c
View file @
0476bbbc
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.
19 2004/08/29 01:44:02
momjian Exp $
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.
20 2004/08/29 02:58:50
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -31,18 +31,27 @@
...
@@ -31,18 +31,27 @@
#if defined(WIN32) || defined(__CYGWIN__)
#if defined(WIN32) || defined(__CYGWIN__)
#include "miscadmin.h"
#include "miscadmin.h"
#include <winioctl.h>
#undef rename
#undef rename
#undef unlink
#undef unlink
#ifdef __WIN32__
#include <winioctl.h>
#else
/* __CYGWIN__ */
#include <windows.h>
#include <w32api/winioctl.h>
#endif
#ifndef FRONTEND
#ifndef FRONTEND
/*
/*
* Call non-macro versions of palloc, can't reference CurrentMemoryContext
* Call non-macro versions of palloc, can't reference CurrentMemoryContext
* because of DLLIMPORT.
* because of DLLIMPORT.
*/
*/
#undef palloc
#undef pstrdup
#undef pfree
#define palloc(sz) pgport_palloc(sz)
#define palloc(sz) pgport_palloc(sz)
#define pstrdup(str) pgport_pstrdup(str)
#define pstrdup(str) pgport_pstrdup(str)
#define pfree(pointer) pgport_pfree(pointer)
#define pfree(pointer) pgport_pfree(pointer)
...
...
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