Skip to content

Conversation

@listout
Copy link

@listout listout commented May 12, 2023

Bug encontered on Gentoo with clang 16. Please refer
https://bugs.gentoo.org/898574

Brahmajit Das added 2 commits May 13, 2023 02:48
Bug encontered on Gentoo with clang 16. Please refer
https://bugs.gentoo.org/898574

Signed-off-by: Brahmajit Das <[email protected]>
int tcp_chan_has_data(struct tcp_chan *chan);

extern time_t pbs_tcp_timeout;
extern "C" time_t pbs_tcp_timeout;
Copy link

@yselkowitz yselkowitz Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes an error with C, needs to be something like:

Suggested change
extern "C" time_t pbs_tcp_timeout;
#ifdef __cplusplus
extern "C" time_t pbs_tcp_timeout;
#else
extern time_t pbs_tcp_timeout;
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants