You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/28 15:21:58 UTC
[incubator-nuttx-apps] 01/02: examples/udpblaster: Avoid conflicts
with host OS definitions
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit cf30257f1c87b13e95711db48c0cc2c905df0f01
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sat Mar 28 22:25:32 2020 +0900
examples/udpblaster: Avoid conflicts with host OS definitions
---
examples/udpblaster/udpblaster.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/udpblaster/udpblaster.h b/examples/udpblaster/udpblaster.h
index 11eddd7..4b60253 100644
--- a/examples/udpblaster/udpblaster.h
+++ b/examples/udpblaster/udpblaster.h
@@ -51,6 +51,8 @@
#ifdef UDPBLASTER_HOST
/* HTONS/L macros are unique to uIP */
+# undef HTONS
+# undef HTONL
# define HTONS(a) htons(a)
# define HTONL(a) htonl(a)