From: Ed Maste Date: Fri, 30 Aug 2013 14:56:08 +0000 (-0400) Subject: util: Include pthread_np.h on FreeBSD X-Git-Tag: sliver-openvswitch-2.0.90-1~16^2~42 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1805ee4b4d7c7a5be00bf57e97d885f8285ede59;p=sliver-openvswitch.git 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 --- 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);