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 <y...@mwd.biglobe.ne.jp> --- lib/util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/util.c b/lib/util.c index 6a72107..d719cd3 100644 --- a/lib/util.c +++ b/lib/util.c @@ -402,7 +402,12 @@ set_subprogram_name(const char *name) { free(subprogram_name_set(xstrdup(name))); #if HAVE_PTHREAD_SETNAME_NP +#if defined(__FreeBSD__) || defined(__NetBSD__) + pthread_setname_np(pthread_self(), name, NULL); +#else + /* Linux */ pthread_setname_np(pthread_self(), name); +#endif #elif HAVE_PTHREAD_SET_NAME_NP pthread_set_name_np(pthread_self(), name); #endif -- 1.8.1.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev