From 1805ee4b4d7c7a5be00bf57e97d885f8285ede59 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 30 Aug 2013 10:56:08 -0400 Subject: [PATCH] util: Include pthread_np.h on FreeBSD On FreeBSD pthread_set_name_np's prototype is provided by pthread_np.h. As I believe it is the only platform to provide the "set_name" (with an underscore) variant I hope it's fine to use the existing autoconf macro HAVE_PTHREAD_SET_NAME_NP. Signed-off-by: Ed Maste Signed-off-by: Ben Pfaff --- lib/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/util.c b/lib/util.c index 76c33cd7c..3cada4ad4 100644 --- a/lib/util.c +++ b/lib/util.c @@ -30,6 +30,9 @@ #include "coverage.h" #include "ovs-thread.h" #include "vlog.h" +#ifdef HAVE_PTHREAD_SET_NAME_NP +#include +#endif VLOG_DEFINE_THIS_MODULE(util); -- 2.43.0