aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2017-11-23 06:55:18 +1100
committerSimon Riggs <simon@2ndQuadrant.com>2017-11-23 06:55:18 +1100
commitb99661c2ff4eef923abd96d2a733556f5f64c2d6 (patch)
treee61498eb653bd8d7c04f6c76cb3e217cad650705 /src
parenta4ccc1cef5a04cc054af83bc4582a045d5232cb3 (diff)
downloadpostgresql-b99661c2ff4eef923abd96d2a733556f5f64c2d6.tar.gz
postgresql-b99661c2ff4eef923abd96d2a733556f5f64c2d6.zip
Tweak code for older compilers
Attempt to quiesce build farm Author: Tomas Vondra
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/mmgr/generation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/mmgr/generation.c b/src/backend/utils/mmgr/generation.c
index 11a6a37a37e..cdff20ff815 100644
--- a/src/backend/utils/mmgr/generation.c
+++ b/src/backend/utils/mmgr/generation.c
@@ -92,20 +92,20 @@ typedef struct GenerationContext
* GenerationBloc is the header data for a block --- the usable space
* within the block begins at the next alignment boundary.
*/
-typedef struct GenerationBlock
+struct GenerationBlock
{
dlist_node node; /* doubly-linked list */
int nchunks; /* number of chunks in the block */
int nfree; /* number of free chunks */
char *freeptr; /* start of free space in this block */
char *endptr; /* end of space in this block */
-} GenerationBlock;
+};
/*
* GenerationChunk
* The prefix of each piece of memory in an GenerationBlock
*/
-typedef struct GenerationChunk
+struct GenerationChunk
{
/* block owning this chunk */
void *block;
@@ -120,7 +120,7 @@ typedef struct GenerationChunk
GenerationContext *context; /* owning context */
/* there must not be any padding to reach a MAXALIGN boundary here! */
-} GenerationChunk;
+};
/*