Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1429)

Unified Diff: native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h

Issue 22625004: Adds htonl, htons, ntohl, and ntohs to newlib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gethostbyname
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h
diff --git a/native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h b/native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h
index c66ad5155b180f2cb240454ebb0d02a04c898762..a0cd05cdc181fc1f54129491e248d2e268fadcd9 100644
--- a/native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h
+++ b/native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h
@@ -562,4 +562,11 @@ char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
#include <netinet6/in6.h>
#undef __KAME_NETINET_IN_H_INCLUDED_
+__BEGIN_DECLS
+uint32_t htonl(uint32_t hostlong);
+uint16_t htons(uint16_t hostshort);
+uint32_t ntohl(uint32_t networklong);
+uint16_t ntohs(uint16_t networkshort);
+__END_DECLS
Sam Clegg 2013/08/08 01:47:25 Where are these normally defined? Why can't we ju
torinmr 2013/08/08 17:01:22 In BSD (and in Linux, as far as I know), they aren
+
#endif /* !_NETINET_IN_H_*/

Powered by Google App Engine
This is Rietveld 408576698