File disable-pthread_atfork-test.patch of Package openwbem

From f249b2ec2b3105802dee06dacf3b892be6efc3df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 30 May 2018 08:21:24 +0200
Subject: [PATCH] disable pthread_atfork test

running into
  owcimomd: hidden symbol pthread_atfork' in /usr/lib64/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO
otherwise
---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index 38f02b351496..35b39448101c 100644
--- a/configure.in
+++ b/configure.in
@@ -629,7 +629,7 @@ if test ".${ac_cv_header_pthread_h}" = ".yes"; then
 	AC_TRY_LINK([
 		#include "confdefs.h"
 		#include <pthread.h>],
-		[pthread_atfork(NULL, NULL, NULL);],
+		[pthread_atfork_broken(NULL, NULL, NULL);],
 		AC_DEFINE_UNQUOTED(HAVE_PTHREAD_ATFORK, 1, [pthread_atfork() exists])
 		AC_MSG_RESULT(yes)
 		ac_has_pthread_atfork=yes,
-- 
2.17.0

openSUSE Build Service is sponsored by