* net.cc: Include asm/byteorder.h.

(htonl): Move to end of file.  Add comment to explain why.  Align
	definition to POSIX.  Use related macro from asm/byteorder.h.
	(ntohl): Ditto.
	(htons): Ditto.
	(ntohs): Ditto.
	* include/asm/byteorder.h: Revert previous patch.
This commit is contained in:
Corinna Vinschen
2009-03-03 11:44:18 +00:00
parent ed296a4727
commit 2895b8b502
3 changed files with 50 additions and 35 deletions

View File

@@ -1,3 +1,13 @@
2009-03-03 Corinna Vinschen <corinna@vinschen.de>
* net.cc: Include asm/byteorder.h.
(htonl): Move to end of file. Add comment to explain why. Align
definition to POSIX. Use related macro from asm/byteorder.h.
(ntohl): Ditto.
(htons): Ditto.
(ntohs): Ditto.
* include/asm/byteorder.h: Revert previous patch.
2009-03-03 Corinna Vinschen <corinna@vinschen.de>
* include/asm/byteorder.h: Disable optimization when building