-
Notifications
You must be signed in to change notification settings - Fork 176
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
base: 3.x
Are you sure you want to change the base?
Conversation
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. |
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> | |||
|
There was a problem hiding this comment.
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__) |
There was a problem hiding this comment.
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 | ||
|
There was a problem hiding this comment.
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.
With some fairly minor changes, galera builds and works on current OpenBSD