From 1e69d1d283dee5ddfb81c7283aacff12c09ac240 Mon Sep 17 00:00:00 2001 From: veego Date: Sun, 5 May 1996 22:25:00 +0000 Subject: [PATCH] Make this compile. Fixes PR#2047 --- sys/arch/amiga/stand/loadkmap/sw-kbdmap.c | 12 +++++++----- sys/arch/amiga/stand/loadkmap/sw/sw-kbdmap.c | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/sys/arch/amiga/stand/loadkmap/sw-kbdmap.c b/sys/arch/amiga/stand/loadkmap/sw-kbdmap.c index 057d8aceca69..d3e02d4b2cd5 100644 --- a/sys/arch/amiga/stand/loadkmap/sw-kbdmap.c +++ b/sys/arch/amiga/stand/loadkmap/sw-kbdmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: sw-kbdmap.c,v 1.1 1996/01/28 20:19:51 chopps Exp $ */ +/* $NetBSD: sw-kbdmap.c,v 1.2 1996/05/05 22:25:00 veego Exp $ */ /* * Copyright (c) 1993 Markus Wild @@ -29,7 +29,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include "../../dev/kbdmap.h" /* define a default keymap. This can be changed by keyboard ioctl's (later at least..) */ @@ -48,8 +48,7 @@ #define C KBD_MODE_CAPS #define K KBD_MODE_KPAD -struct kbdmap kbdmap; -struct kbdmap ascii_kbdmap = { +struct kbdmap kbdmap = { /* normal map */ { 0, '`', /* 0x00 */ @@ -507,5 +506,8 @@ unsigned char acctable[KBD_NUM_ACC][64] = { "`äbcdëfghïjklmnöpqrstüvwxyz{|}~\177"}, /* KBD_ACC_DIER */ }; - +main() +{ + write (1, &kbdmap, sizeof (kbdmap)); +} diff --git a/sys/arch/amiga/stand/loadkmap/sw/sw-kbdmap.c b/sys/arch/amiga/stand/loadkmap/sw/sw-kbdmap.c index 057d8aceca69..d3e02d4b2cd5 100644 --- a/sys/arch/amiga/stand/loadkmap/sw/sw-kbdmap.c +++ b/sys/arch/amiga/stand/loadkmap/sw/sw-kbdmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: sw-kbdmap.c,v 1.1 1996/01/28 20:19:51 chopps Exp $ */ +/* $NetBSD: sw-kbdmap.c,v 1.2 1996/05/05 22:25:00 veego Exp $ */ /* * Copyright (c) 1993 Markus Wild @@ -29,7 +29,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include "../../dev/kbdmap.h" /* define a default keymap. This can be changed by keyboard ioctl's (later at least..) */ @@ -48,8 +48,7 @@ #define C KBD_MODE_CAPS #define K KBD_MODE_KPAD -struct kbdmap kbdmap; -struct kbdmap ascii_kbdmap = { +struct kbdmap kbdmap = { /* normal map */ { 0, '`', /* 0x00 */ @@ -507,5 +506,8 @@ unsigned char acctable[KBD_NUM_ACC][64] = { "`äbcdëfghïjklmnöpqrstüvwxyz{|}~\177"}, /* KBD_ACC_DIER */ }; - +main() +{ + write (1, &kbdmap, sizeof (kbdmap)); +}