mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-04 19:07:16 +08:00

This commit allows an external mDNS library to be included in NuttX. It originates from here: <https://github.com/mjansson/mdns> It is declared as being in the Public Domain as per <http://unlicense.org> Signed-off-by: Tim Hardisty <timh@jti.uk.com>
17 lines
395 B
Diff
17 lines
395 B
Diff
--- mdns/mdns.c
|
|
+++ mdns/mdns/mdns.c
|
|
@@ -22,7 +22,9 @@
|
|
// Alias some things to simulate recieving data to fuzz library
|
|
#if defined(MDNS_FUZZING)
|
|
#define recvfrom(sock, buffer, capacity, flags, src_addr, addrlen) ((mdns_ssize_t)capacity)
|
|
-#define printf
|
|
+#endif
|
|
+#if defined(MDNS_FUZZING) || !defined(CONFIG_NETUTILS_MDNS_VERBOSE)
|
|
+#define printf(...)
|
|
#endif
|
|
|
|
#include "mdns.h"
|
|
--
|
|
2.34.1
|
|
|