summaryrefslogtreecommitdiffstats
path: root/sys/netatalk/endian.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-07-23 01:18:47 +0000
committerjulian <julian@FreeBSD.org>1996-07-23 01:18:47 +0000
commit7805978130bff3d12577cd0f7ab22e16fcf455ed (patch)
tree2385f2536a83e74266993dc1005df7f95645ba32 /sys/netatalk/endian.h
parentb38885b4106ac83ac9d14b4d9d6a8567a51abbbe (diff)
downloadFreeBSD-src-7805978130bff3d12577cd0f7ab22e16fcf455ed.zip
FreeBSD-src-7805978130bff3d12577cd0f7ab22e16fcf455ed.tar.gz
Submitted by: archie@whistle.com
appletalk cleanups
Diffstat (limited to 'sys/netatalk/endian.h')
-rw-r--r--sys/netatalk/endian.h62
1 files changed, 2 insertions, 60 deletions
diff --git a/sys/netatalk/endian.h b/sys/netatalk/endian.h
index 919d351..255c226 100644
--- a/sys/netatalk/endian.h
+++ b/sys/netatalk/endian.h
@@ -21,67 +21,9 @@
* netatalk@itd.umich.edu
*/
-# ifndef _ATALK_ENDIAN_H_
+#ifndef _ATALK_ENDIAN_H_
#define _ATALK_ENDIAN_H_
-#ifdef _IBMR2
-#include <sys/machine.h>
-#endif _IBMR2
-
-#ifdef linux
-#include <bytesex.h>
-#define BYTE_ORDER __BYTE_ORDER
-#endif linux
-
-#ifdef __FreeBSD__
#include <machine/endian.h>
-#endif __FreeBSD__
-
-# ifndef BYTE_ORDER
-#define LITTLE_ENDIAN 1234
-#define BIG_ENDIAN 4321
-#define PDP_ENDIAN 3412
-
-#ifdef sun
-#ifdef i386
-#define BYTE_ORDER LITTLE_ENDIAN
-#else i386
-#define BYTE_ORDER BIG_ENDIAN
-#endif i386
-#else
-#ifdef MIPSEB
-#define BYTE_ORDER BIG_ENDIAN
-#else
-#ifdef MIPSEL
-#define BYTE_ORDER LITTLE_ENDIAN
-#else
-Like, what is your byte order, man?
-#endif MIPSEL
-#endif MIPSEB
-#endif sun
-# endif BYTE_ORDER
-
-# ifndef ntohl
-# if defined( sun ) || defined( ultrix ) || defined( _IBMR2 )
-#if BYTE_ORDER == BIG_ENDIAN
-#define ntohl(x) (x)
-#define ntohs(x) (x)
-#define htonl(x) (x)
-#define htons(x) (x)
-
-#else
-#if defined( mips ) && defined( KERNEL )
-#define ntohl(x) nuxi_l(x)
-#define ntohs(x) nuxi_s(x)
-#define htonl(x) nuxi_l(x)
-#define htons(x) nuxi_s(x)
-
-#else mips KERNEL
-unsigned short ntohs(), htons();
-unsigned long ntohl(), htonl();
-#endif mips KERNEL
-#endif BYTE_ORDER
-# endif sun ultrix _IBMR2
-# endif ntohl
-# endif _ATALK_ENDIAN_H_
+#endif _ATALK_ENDIAN_H_
OpenPOWER on IntegriCloud