summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2020-04-21 15:13:05 +0000
committerTom Lane2020-04-21 15:13:05 +0000
commit2117c3cb3d51e73290f464ad725fe829c96b9213 (patch)
tree92a52f955bedf02ac4b4853b18566f4768ded81f
parent67f82e966b524fc0eb44024976c5178612a77fc8 (diff)
Fix duplicate typedef from commit 0d8c9c121.
Older gcc versions don't like duplicate typedefs, so get rid of that in favor of doing it like we do it elsewhere, ie just use a "struct" declaration when trying to avoid importing a whole header file. Also, there seems no reason to include stringinfo.h here at all, so get rid of that addition too. Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/include/replication/basebackup.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/replication/basebackup.h b/src/include/replication/basebackup.h
index d5b594c928d..f6a7422cbc7 100644
--- a/src/include/replication/basebackup.h
+++ b/src/include/replication/basebackup.h
@@ -12,16 +12,17 @@
#ifndef _BASEBACKUP_H
#define _BASEBACKUP_H
-#include "lib/stringinfo.h"
#include "nodes/replnodes.h"
+struct manifest_info; /* avoid including backup_manifest.h */
+
+
/*
* Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
*/
#define MAX_RATE_LOWER 32
#define MAX_RATE_UPPER 1048576
-
typedef struct
{
char *oid;
@@ -30,12 +31,9 @@ typedef struct
int64 size;
} tablespaceinfo;
-struct manifest_info;
-typedef struct manifest_info manifest_info;
-
extern void SendBaseBackup(BaseBackupCmd *cmd);
extern int64 sendTablespace(char *path, char *oid, bool sizeonly,
- manifest_info *manifest);
+ struct manifest_info *manifest);
#endif /* _BASEBACKUP_H */