]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb: Fix redefinitoin of pmdaResult
authorAndreas Schneider <asn@samba.org>
Fri, 12 Sep 2025 13:37:38 +0000 (15:37 +0200)
committerJule Anger <janger@samba.org>
Wed, 17 Sep 2025 07:44:16 +0000 (07:44 +0000)
../../ctdb/utils/pmda/pmda_ctdb.c:52:9: warning: 'pmdaResult' redefined
   52 | #define pmdaResult pmResult
      |         ^~~~~~~~~~
In file included from ../../ctdb/utils/pmda/pmda_ctdb.c:35:
/usr/include/pcp/pmda.h:30:9: note: this is the location of the previous definition
   30 | #define pmdaResult pmResult_v2
      |         ^~~~~~~~~~

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15904

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Sat Sep 13 08:12:42 UTC 2025 on atb-devel-224

(cherry picked from commit d4b448c305f674646001e293d8aa6ebc0ca6dc77)

ctdb/utils/pmda/pmda_ctdb.c

index 9845f26defb17749aa8b3e3c18bb9678ee695dce..5c09aca7b84a1a4bfbbb6f835593c93e2d06201c 100644 (file)
@@ -48,7 +48,7 @@
 #define pmSetProgname(a)       __pmSetProgname(a)
 #endif
 
-#ifdef HAVE_STRUCT_PMRESULT
+#if !defined(pmdaResult) && defined(HAVE_STRUCT_PMRESULT)
 #define pmdaResult pmResult
 #endif