rpms/openbabel/devel openbabel-gcc43.patch,1.9,1.10

Dominik Mierzejewski (rathann) fedora-extras-commits at redhat.com
Sun Jan 6 20:39:56 UTC 2008


Author: rathann

Update of /cvs/pkgs/rpms/openbabel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21567

Modified Files:
	openbabel-gcc43.patch 
Log Message:
- fix build with gcc-4.3, take 10

openbabel-gcc43.patch:

Index: openbabel-gcc43.patch
===================================================================
RCS file: /cvs/pkgs/rpms/openbabel/devel/openbabel-gcc43.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- openbabel-gcc43.patch	6 Jan 2008 20:29:52 -0000	1.9
+++ openbabel-gcc43.patch	6 Jan 2008 20:39:48 -0000	1.10
@@ -16,7 +16,7 @@
              minor namespace modifications, VC++ compatibility
  */
  
-+#include <string.h>
++#include <cstring>
 +
  //*****************************************************************************
  //  template class basic_zip_streambuf
@@ -28,7 +28,7 @@
  // File Includes
  ///////////////////////////////////////////////////////////////////////////////
  
-+#include <string.h>
++#include <cstring>
 +
  #include <openbabel/babelconfig.h>
  
@@ -41,7 +41,7 @@
  #include <vector>
  #include <string>
 -
-+#include <string.h>
++#include <cstring>
  
  using namespace std;
  
@@ -122,7 +122,7 @@
  
  #include <stdio.h>
 -
-+#include <string.h>
++#include <cstring>
  #include <fstream>
  #include <vector>
  #include <string>
@@ -149,3 +149,14 @@
  
  #ifndef OBCONV
  #define OBCONV
+diff -up openbabel-2.1.1/tools/babel.cpp.gcc43 openbabel-2.1.1/tools/babel.cpp
+--- openbabel-2.1.1/tools/babel.cpp.gcc43	2007-07-07 08:35:54.000000000 +0200
++++ openbabel-2.1.1/tools/babel.cpp	2008-01-06 21:38:49.000000000 +0100
+@@ -35,6 +35,7 @@ GNU General Public License for more deta
+ 	#include <conio.h>
+ #endif
+ #include <cstdlib>
++#include <cstring>
+ 
+ #if !HAVE_STRNCASECMP
+ extern "C" int strncasecmp(const char *s1, const char *s2, size_t n);




More information about the fedora-extras-commits mailing list