Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Since the playstation2 port still uses a variant of ...



details:   https://anonhg.NetBSD.org/src/rev/e94c6034493b
branches:  trunk
changeset: 558252:e94c6034493b
user:      he <he%NetBSD.org@localhost>
date:      Mon Feb 02 23:13:44 2004 +0000

description:
Since the playstation2 port still uses a variant of gcc 2.95.2,
change to use a zero-sized array instead of c99 flexible array
member in a struct.

OK'ed by yamt.

diffstat:

 sys/uvm/uvm_map.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1299dfd3575d -r e94c6034493b sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Mon Feb 02 20:36:18 2004 +0000
+++ b/sys/uvm/uvm_map.c Mon Feb 02 23:13:44 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.155 2004/01/30 11:56:39 yamt Exp $       */
+/*     $NetBSD: uvm_map.c,v 1.156 2004/02/02 23:13:44 he Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.155 2004/01/30 11:56:39 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.156 2004/02/02 23:13:44 he Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -3878,7 +3878,7 @@
        int ukh_nused;
        struct vm_map_entry *ukh_freelist;
        struct vm_map *ukh_map;
-       struct vm_map_entry ukh_entries[];
+       struct vm_map_entry ukh_entries[0];
 };
 
 #define        UVM_KMAPENT_CHUNK                               \



Home | Main Index | Thread Index | Old Index