On 28/08/12 13:17 +0200, Fabio M. Di Nitto wrote:
From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx> EBADE and ETIME are not defined on FreeBSD 9 Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> --- :100644 100644 239b14f... f10f727... M common_lib/error_conversion.c common_lib/error_conversion.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common_lib/error_conversion.c b/common_lib/error_conversion.c index 239b14f..f10f727 100644 --- a/common_lib/error_conversion.c +++ b/common_lib/error_conversion.c @@ -33,6 +33,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ +#include <config.h> #include <corosync/corotypes.h> cs_error_t qb_to_cs_error (int result) @@ -58,12 +59,14 @@ cs_error_t qb_to_cs_error (int result) case EAGAIN: err = CS_ERR_TRY_AGAIN; break; +#ifndef COROSYNC_BSD
maybe: #ifdef EBADE ? Not sure if you can but better than checking for the os.
case EBADE: err = CS_ERR_FAILED_OPERATION; break; case ETIME: err = CS_ERR_TIMEOUT; break; +#endif case EINVAL: err = CS_ERR_INVALID_PARAM; break; -- 1.7.7.6 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss