Patches for Solaris/Illumos

Tested with OpenIndiana a151a9 and the current masters of libqb and corosync.
Corosync and pacemaker start without any errors.

Andreas
With the following defines before the definitions of ___swabNN lib/common/remote.c compiles without error.

 

#if ON_SOLARIS

#define __u64 uint64_t

#define __u32 uint32_t

#define __u16 uint16_t

#define __swab16 ___swab16

#define __swab32 ___swab32

#define __swab64 ___swab64

#endif

 

Thanks a lot.

 

 

Von: Andrew Beekhof [mailto:notifications@github.com] 
Gesendet: Donnerstag, 14. August 2014 05:40
An: beekhof/pacemaker
Cc: Grüninger, Andreas (LGL Extern)
Betreff: Re: [pacemaker] Patches for Solaris/Illumos (#12)

 

In lib/common/remote.c:

> @@ -62,6 +62,31 @@ const int anon_tls_kx_order[] = {
>  /* Swab macros from linux/swab.h */
>  #ifdef HAVE_LINUX_SWAB_H
>  #  include <linux/swab.h>
> +#elif ON_SOLARIS

Perhaps try the existing version but replace __uNN with uintNN_t ?
Thats the only thing I can think of

—
Reply to this email directly or view it on GitHub <https://github.com/beekhof/pacemaker/pull/12/files#r16219972> . <https://github.com/notifications/beacon/692623__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzYwNjgxOCwiZGF0YSI6eyJpZCI6MzkyODkyODl9fQ==--ca154be2d2faea0e59b79dd0a6d044112a078dc7.gif>