Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD compatibility #169

Open
wants to merge 11 commits into
base: 3.x
Choose a base branch
from
Open

OpenBSD compatibility #169

wants to merge 11 commits into from

Conversation

jmatthew
Copy link

@jmatthew jmatthew commented Nov 7, 2014

With some fairly minor changes, galera builds and works on current OpenBSD

@jmatthew
Copy link
Author

Is there any possibility of these changes (once updated for 3.28) being merged? Galera has been working well for us on OpenBSD for the last five years.

@brad0
Copy link

brad0 commented May 14, 2023

Seeing the port added recently, it would be nice if this was rebased and commited.

Just noticed this is on the 3.x branch. Needs to be updated for the 4.x branch.

@@ -3,7 +3,7 @@
#include "gu_backtrace.h"
#include "gu_log.h"

#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__OpenBSD__)
#include <execinfo.h>
#include <stdlib.h>

Copy link

Choose a reason for hiding this comment

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

This patch should be removed since it is no longer relevant.

#include <endian.h>
#define gu_bswap16(x) __swap16(x)
#define gu_bswap32(x) __swap32(x)
#define gu_bswap64(x) __swap64(x)
#elif defined(__sun__)
Copy link

Choose a reason for hiding this comment

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

Robert used the swapX macros. Wonder if that makes more sense as they use the bswapX macros further down.

#endif
#ifndef EBADMSG
# define EBADMSG (GU_ELAST+8)
#endif

Copy link

Choose a reason for hiding this comment

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

This patch can be removed as it is no longer necessary.

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