--- old/usr/src/uts/common/sys/byteorder.h	Tue Jul 22 09:31:42 2008
+++ new/usr/src/uts/common/sys/byteorder.h	Tue Jul 22 09:31:42 2008
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -40,7 +40,7 @@
 #ifndef _SYS_BYTEORDER_H
 #define	_SYS_BYTEORDER_H
 
-#pragma ident	"@(#)byteorder.h	1.23	07/10/25 SMI"
+#pragma ident	"@(#)byteorder.h	1.27	08/07/22 SMI"
 
 #include <sys/isa_defs.h>
 #include <sys/int_types.h>
@@ -61,8 +61,10 @@
 #if defined(_BIG_ENDIAN) && !defined(ntohl) && !defined(__lint)
 /* big-endian */
 #define	ntohl(x)	(x)
+#define	ntohll(x)	(x)
 #define	ntohs(x)	(x)
 #define	htonl(x)	(x)
+#define	htonll(x)	(x)
 #define	htons(x)	(x)
 
 #elif !defined(ntohl) /* little-endian */
@@ -88,6 +90,10 @@
 extern 	in_addr_t ntohl(in_addr_t);
 extern	in_port_t ntohs(in_port_t);
 #endif	/* !defined(_XPG4_2) || defined(__EXTENSIONS__) || defined(_XPG5) */
+#if !(defined(_XPG4_2) || defined(_XPG5)) || defined(__EXTENSIONS__)
+extern	uint64_t htonll(uint64_t);
+extern 	uint64_t ntohll(uint64_t);
+#endif	/* !(_XPG4_2||_XPG5) || __EXTENSIONS__ */
 #endif
 
 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
