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

Commit2117c3c

Browse files
committed
Fix duplicate typedef from commit0d8c9c1.
Older gcc versions don't like duplicate typedefs, so get rid ofthat in favor of doing it like we do it elsewhere, ie just usea "struct" declaration when trying to avoid importing a wholeheader 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/27239.1587415696@sss.pgh.pa.us
1 parent67f82e9 commit2117c3c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎src/include/replication/basebackup.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
#ifndef_BASEBACKUP_H
1313
#define_BASEBACKUP_H
1414

15-
#include"lib/stringinfo.h"
1615
#include"nodes/replnodes.h"
1716

17+
structmanifest_info;/* avoid including backup_manifest.h */
18+
19+
1820
/*
1921
* Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
2022
*/
2123
#defineMAX_RATE_LOWER32
2224
#defineMAX_RATE_UPPER1048576
2325

24-
2526
typedefstruct
2627
{
2728
char*oid;
@@ -30,12 +31,9 @@ typedef struct
3031
int64size;
3132
}tablespaceinfo;
3233

33-
structmanifest_info;
34-
typedefstructmanifest_infomanifest_info;
35-
3634
externvoidSendBaseBackup(BaseBackupCmd*cmd);
3735

3836
externint64sendTablespace(char*path,char*oid,boolsizeonly,
39-
manifest_info*manifest);
37+
structmanifest_info*manifest);
4038

4139
#endif/* _BASEBACKUP_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp