summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-bc
blob: 2efceb1e95fee2e5e764e563636b6b2649d7046c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$NetBSD: patch-bc,v 1.1 2000/10/12 19:17:03 kim Exp $

add machine config file for arm32 machines

--- /dev/null	Thu Oct 12 14:46:24 2000
+++ conf/m-arm.h	Thu Oct 12 15:05:05 2000
@@ -0,0 +1,36 @@
+/************** Machine (and compiler) dependent definitions. **************
+ *
+ * For arm32
+ *
+ */
+
+/*      MACHINE TYPE	DEFINED TYPE		VALUE RANGE	*/
+
+typedef unsigned char	int8;		/*        0 ..     255 */
+typedef short		int16;		/*  -10,000 ..  10,000 */
+typedef int		int32;		/* -100,000 .. 100,000 */
+typedef unsigned int	uint32;		/* 	  0 ..  2^31-1 */
+
+#ifdef NETWORK_DATABASE
+
+/*
+ *	Define NETWORK_BYTE_ORDER if the machine's int32's are
+ *	already in network byte order, i.e. m68k based.
+ */
+#include <sys/types.h>
+#include <machine/endian.h>
+
+#if BYTE_ORDER == BIG_ENDIAN
+#define NETWORK_BYTE_ORDER	/* */
+#endif
+
+/*
+ *	OTHERWISE provide the functions/macros ntohl/htonl to
+ *	convert longs from and to network byte order
+ */
+
+#ifndef NETWORK_BYTE_ORDER
+#include <netinet/in.h>
+#endif
+
+#endif	/* NETWORK_DATABASE */