xref: /aosp_15_r20/external/ot-br-posix/third_party/mDNSResponder/0001-Fix-Linux-build.patch (revision 4a64e381480ef79f0532b2421e44e6ee336b8e0d)
1*4a64e381SAndroid Build Coastguard WorkerFrom e136dcdcdd93ef32ada981e89c195905eb809eea Mon Sep 17 00:00:00 2001
2*4a64e381SAndroid Build Coastguard WorkerMessage-ID: <e136dcdcdd93ef32ada981e89c195905eb809eea.1687508149.git.stefan@agner.ch>
3*4a64e381SAndroid Build Coastguard WorkerFrom: Nate Karstens <[email protected]>
4*4a64e381SAndroid Build Coastguard WorkerDate: Thu, 23 Mar 2023 00:15:52 -0500
5*4a64e381SAndroid Build Coastguard WorkerSubject: [PATCH] Fix Linux build
6*4a64e381SAndroid Build Coastguard Worker
7*4a64e381SAndroid Build Coastguard WorkerThe __block qualifier is not used in Linux builds.
8*4a64e381SAndroid Build Coastguard Worker
9*4a64e381SAndroid Build Coastguard WorkerSigned-off-by: Nate Karstens <[email protected]>
10*4a64e381SAndroid Build Coastguard Worker---
11*4a64e381SAndroid Build Coastguard Worker mDNSShared/uds_daemon.c | 4 ++++
12*4a64e381SAndroid Build Coastguard Worker 1 file changed, 4 insertions(+)
13*4a64e381SAndroid Build Coastguard Worker
14*4a64e381SAndroid Build Coastguard Workerdiff --git a/mDNSShared/uds_daemon.c b/mDNSShared/uds_daemon.c
15*4a64e381SAndroid Build Coastguard Workerindex 9ae5f78..5a00bb5 100644
16*4a64e381SAndroid Build Coastguard Worker--- a/mDNSShared/uds_daemon.c
17*4a64e381SAndroid Build Coastguard Worker+++ b/mDNSShared/uds_daemon.c
18*4a64e381SAndroid Build Coastguard Worker@@ -2912,7 +2912,11 @@ exit:
19*4a64e381SAndroid Build Coastguard Worker mDNSlocal mStatus add_domain_to_browser(request_state *info, const domainname *d)
20*4a64e381SAndroid Build Coastguard Worker {
21*4a64e381SAndroid Build Coastguard Worker     browser_t *b, *p;
22*4a64e381SAndroid Build Coastguard Worker+#if defined(TARGET_OS_MAC) && TARGET_OS_MAC
23*4a64e381SAndroid Build Coastguard Worker     __block mStatus err;
24*4a64e381SAndroid Build Coastguard Worker+#else
25*4a64e381SAndroid Build Coastguard Worker+    mStatus err;
26*4a64e381SAndroid Build Coastguard Worker+#endif
27*4a64e381SAndroid Build Coastguard Worker
28*4a64e381SAndroid Build Coastguard Worker     for (p = info->u.browser.browsers; p; p = p->next)
29*4a64e381SAndroid Build Coastguard Worker     {
30*4a64e381SAndroid Build Coastguard Worker--
31*4a64e381SAndroid Build Coastguard Worker2.41.0
32*4a64e381SAndroid Build Coastguard Worker
33