Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Make it compile for gcc 2.95.



details:   https://anonhg.NetBSD.org/src/rev/96b34278dab8
branches:  trunk
changeset: 584153:96b34278dab8
user:      itohy <itohy%NetBSD.org@localhost>
date:      Sat Sep 10 10:39:39 2005 +0000

description:
Make it compile for gcc 2.95.

diffstat:

 sys/sys/device.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 8327490636ed -r 96b34278dab8 sys/sys/device.h
--- a/sys/sys/device.h  Sat Sep 10 10:35:25 2005 +0000
+++ b/sys/sys/device.h  Sat Sep 10 10:39:39 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.79 2005/08/26 14:20:40 drochner Exp $ */
+/* $NetBSD: device.h,v 1.80 2005/09/10 10:39:39 itohy Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -187,7 +187,11 @@
 struct cfiattrdata {
        const char *ci_name;
        int ci_loclen;
-       const struct cflocdesc ci_locdesc[];
+       const struct cflocdesc ci_locdesc[
+#if defined(__GNUC__) && __GNUC__ <= 2
+               0
+#endif
+       ];
 };
 
 /*



Home | Main Index | Thread Index | Old Index