Skip to content

Commit 15ce9ea

Browse files
Add repr(C) to struct Port on pg13..=16 (pgcentralfoundation#2201)
Caught during self-review right after I clicked the green button for pgcentralfoundation#2200.
1 parent 10d8e26 commit 15ce9ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pgrx-pg-sys/src/libpq.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub mod be {
2323

2424
/// Port for Postgres 13..=16
2525
#[cfg(any(feature = "pg13", feature = "pg14", feature = "pg15", feature = "pg16"))]
26+
#[repr(C)]
2627
pub struct Port {
2728
pub sock: crate::pgsocket,
2829
pub noblock: bool,

0 commit comments

Comments
 (0)