patch-2.1.19 linux/include/asm-sparc64/byteorder.h

Next file: linux/include/asm-sparc64/current.h
Previous file: linux/include/asm-sparc64/bugs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.18/linux/include/asm-sparc64/byteorder.h linux/include/asm-sparc64/byteorder.h
@@ -1,17 +1,17 @@
-/* $Id: byteorder.h,v 1.1 1996/11/20 14:01:53 davem Exp $ */
+/* $Id: byteorder.h,v 1.2 1996/12/26 13:25:23 davem Exp $ */
 #ifndef _SPARC64_BYTEORDER_H
 #define _SPARC64_BYTEORDER_H
 
-#define ntohl(x) x
-#define ntohs(x) x
-#define htonl(x) x
-#define htons(x) x
+extern __inline__ unsigned long int ntohl(unsigned long int x) { return x; }
+extern __inline__ unsigned short int ntohs(unsigned short int x) { return x; }
+extern __inline__ unsigned long int htonl(unsigned long int x) { return x; }
+extern __inline__ unsigned short int htons(unsigned short int x) { return x; }
 
 /* Some programs depend upon these being around. */
-#define __constant_ntohl(x) x
-#define __constant_ntohs(x) x
-#define __constant_htonl(x) x
-#define __constant_htons(x) x
+extern __inline__ unsigned long int __constant_ntohl(unsigned long int x) { return x; }
+extern __inline__ unsigned short int __constant_ntohs(unsigned short int x) { return x; }
+extern __inline__ unsigned long int __constant_htonl(unsigned long int x) { return x; }
+extern __inline__ unsigned short int __constant_htons(unsigned short int x) { return x; }
 
 #ifndef __BIG_ENDIAN
 #define __BIG_ENDIAN 4321

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov