[PATCH 23/27] libnetworking: Add NTOHL, ... to rtems_bsdnet_internal.h.

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Jun 24 09:38:42 UTC 2016


From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>

---
 cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 7237b91..10a1f62 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -124,6 +124,11 @@ __END_DECLS
 #define	ntohs(x)	__ntohs(x)
 #endif /* !_BYTEORDER_FUNC_DEFINED */
 
+#define NTOHS(x) (x) = ntohs(x)
+#define HTONS(x) (x) = htons(x)
+#define NTOHL(x) (x) = ntohl(x)
+#define HTONL(x) (x) = htonl(x)
+
 in_addr_t	 inet_addr(const char *);
 
 typedef quad_t          rlim_t;         /* resource limit */
-- 
1.8.4.5




More information about the devel mailing list