summaryrefslogtreecommitdiff
path: root/news/nn/patches
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2000-10-12 19:17:03 +0000
committerkim <kim@pkgsrc.org>2000-10-12 19:17:03 +0000
commit15f42f6a1e9c77a374f1d932eafbb02edbd9cb57 (patch)
tree153df505de5a981fdd042f4e63836cc8a30b5a90 /news/nn/patches
parent54367d8e8a7d3002623c496265f3423c2b29f7e1 (diff)
downloadpkgsrc-15f42f6a1e9c77a374f1d932eafbb02edbd9cb57.tar.gz
Add machine config for arm32
XXX: may break arm26, if LOWER_OPSYS is "arm" on them
Diffstat (limited to 'news/nn/patches')
-rw-r--r--news/nn/patches/patch-bc43
1 files changed, 43 insertions, 0 deletions
diff --git a/news/nn/patches/patch-bc b/news/nn/patches/patch-bc
new file mode 100644
index 00000000000..2efceb1e95f
--- /dev/null
+++ b/news/nn/patches/patch-bc
@@ -0,0 +1,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 */