Browse Source

fix building for pedantic gcc3.3, but does it work ?

Michael van Elst 22 years ago
parent
commit
8695c5d862
1 changed files with 6 additions and 1 deletions
  1. 6 1
      bochs/bochs.spec

+ 6 - 1
bochs/bochs.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Misc
 Group:        Misc
 License:      LGPL
 License:      LGPL
 Version:      2.0.2
 Version:      2.0.2
-Release:      20030129
+Release:      20030612
 
 
 #   list of sources
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/sourceforge/bochs/bochs-%{version}.tar.gz
 Source0:      http://osdn.dl.sourceforge.net/sourceforge/bochs/bochs-%{version}.tar.gz
@@ -66,6 +66,11 @@ AutoReqProv:  no
     #   picked up by "make install" later.
     #   picked up by "make install" later.
     find . -type d -name CVS -print | xargs rm -rf
     find . -type d -name CVS -print | xargs rm -rf
 
 
+    #   fix non-standard initializers
+    %{l_shtool} subst \
+        -e 's;{ *0, *{ *\(&[^ ]*\) *} *};{ 0, \1 };' \
+        cpu/fetchdecode.cc
+
 %build
 %build
     #   make sure Bochs find the global configuration
     #   make sure Bochs find the global configuration
     %{l_shtool} subst \
     %{l_shtool} subst \