const-correct, appeases g++4

This commit is contained in:
espie 2010-05-22 14:27:21 +00:00
parent fa7b6a93d2
commit ced09ca89e
3 changed files with 20 additions and 8 deletions

View File

@ -1,6 +1,6 @@
--- Makefile.in.orig Fri Apr 22 19:51:15 2005
+++ Makefile.in Fri Apr 22 19:51:59 2005
@@ -164,7 +164,7 @@
--- Makefile.in.orig Mon Feb 7 22:48:03 2005
+++ Makefile.in Sat May 22 16:17:55 2010
@@ -164,7 +164,7 @@ install_aux_files = AUTHORS COPYING INSTALL CHANGES CH
ChangeLog ChangeLog-2003 ChangeLog-2002
@ -9,7 +9,7 @@
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -382,7 +382,7 @@
@@ -382,7 +382,7 @@ distclean-tags:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = .

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Avr_h,v 1.1 2010/05/22 14:27:21 espie Exp $
--- src/Avr.h.orig Sat May 22 16:25:08 2010
+++ src/Avr.h Sat May 22 16:25:19 2010
@@ -142,7 +142,7 @@ class TAvr: public TDevice{
private:
/* AVR Family Device (Part) List */
struct TPart {
- char* name;
+ const char* const name;
TByte part_family;
TByte part_number;
TAddr flash_size;

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-src_DAPA_C,v 1.1 2008/10/12 08:29:39 martin Exp $
$OpenBSD: patch-src_DAPA_C,v 1.2 2010/05/22 14:27:21 espie Exp $
--- src/DAPA.C.orig Tue Dec 28 15:39:38 2004
+++ src/DAPA.C Sun Jun 8 18:04:35 2008
+++ src/DAPA.C Sat May 22 16:17:55 2010
@@ -84,6 +84,35 @@
#define ioport_enable(port, num) i386_set_ioperm(port, num, 1)
#define ioport_disable(port, num) i386_set_ioperm(port, num, 0)
+#elif defined(__OpenBSD__) && defined(__i386__)
+
+#include <sys/types.h>
@ -35,5 +35,5 @@ $OpenBSD: patch-src_DAPA_C,v 1.1 2008/10/12 08:29:39 martin Exp $
+}
+
#else
/* Direct I/O port access not supported - ppdev/ppi kernel driver