43 lines
1 KiB
Text
43 lines
1 KiB
Text
$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 */
|