[ovs-dev] [PATCH] fix compilation on FreeBSD/NetBSD

YAMAMOTO Takashi yamt at mwd.biglobe.ne.jp
Thu Aug 1 09:31:15 UTC 2013


> On Wed, Jul 31, 2013 at 11:01:43AM +0900, YAMAMOTO Takashi wrote:
>> probably this should be an autoconf magic but
>> 1) i'm not familiar with autoconf and 2) _np functions
>> are inheretly non-portable anyway.
>> 
>> Signed-off-by: YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp>
> 
> I'd rather do it "the right way".  I sent out an alternative patch:
>         http://openvswitch.org/pipermail/dev/2013-July/030155.html
> Please test and review it.

with an obvious typo fixed, it works for me on NetBSD.  thanks.

YAMAMOTO Takashi


>From 5d38d08bb7fdb8db231b87c3d77fb657705afa73 Mon Sep 17 00:00:00 2001
From: YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp>
Date: Thu, 1 Aug 2013 18:26:24 +0900
Subject: [PATCH] configure: fix a macro name for netbsd variant of
 pthread_setname_np


Signed-off-by: YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp>
---
 acinclude.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acinclude.m4 b/acinclude.m4
index faf6a66..6033bfa 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -569,7 +569,7 @@ AC_DEFUN([OVS_CHECK_PTHREAD_SET_NAME],
 	  ;; # (
        netbsd)
 	  AC_DEFINE(
-	    [HAVE_GLIBC_PTHREAD_SETNAME_NP], [1],
+	    [HAVE_NETBSD_PTHREAD_SETNAME_NP], [1],
 	    [Define to 1 if pthread_setname_np() is available and takes 3 parameters (like NetBSD).])
 	  ;;
      esac
-- 
1.8.1.5




More information about the dev mailing list