File OpenSceneGraph-2.2.0-gcc43_includes.patch of Package osg
--- src/osg/DisplaySettings.cpp
+++ src/osg/DisplaySettings.cpp
@@ -17,6 +17,7 @@
#include <osg/ref_ptr>
#include <algorithm>
+#include <cstring>
using namespace osg;
using namespace std;
--- src/osg/Image.cpp
+++ src/osg/Image.cpp
@@ -24,6 +24,8 @@
#include <osg/Texture2DArray>
#include "dxtctool.h"
+#include <cstring>
+#include <stdlib.h>
using namespace osg;
using namespace std;
--- src/osg/Notify.cpp
+++ src/osg/Notify.cpp
@@ -14,6 +14,7 @@
#include <string>
#include <iostream>
#include <fstream>
+#include <stdlib.h>
using namespace std;
--- src/osgDB/Field.cpp
+++ src/osgDB/Field.cpp
@@ -11,6 +11,7 @@
* OpenSceneGraph Public License for more details.
*/
#include <osgDB/Field>
+#include <cstring>
using namespace osgDB;
using namespace std;
--- src/osgDB/FileNameUtils.cpp
+++ src/osgDB/FileNameUtils.cpp
@@ -12,6 +12,7 @@
*/
#include <stdlib.h>
#include <limits.h>
+#include <cstring>
#include <osgDB/FileNameUtils>
--- src/osgDB/Registry.cpp
+++ src/osgDB/Registry.cpp
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <algorithm>
+#include <cstring>
#include <set>
#if defined(__sgi)
--- src/osgPlugins/hdr/hdrwriter.cpp
+++ src/osgPlugins/hdr/hdrwriter.cpp
@@ -32,6 +32,8 @@
#include <string>
#include <math.h>
#include <ctype.h>
+#include <stdlib.h>
+
bool HDRWriter::writeRLE(const osg::Image *img, std::ostream& fout)
--- src/osgPlugins/lwo/ReaderWriterLWO.cpp
+++ src/osgPlugins/lwo/ReaderWriterLWO.cpp
@@ -15,9 +15,10 @@
#pragma warning( disable : 4786 )
#endif
-#include <string>
+#include <cstring>
#include <sstream>
#include <algorithm>
+#include <memory>
#include <osg/Notify>
#include <osg/Node>
--- src/osgPlugins/x/directx.cpp
+++ src/osgPlugins/x/directx.cpp
@@ -32,6 +32,7 @@
#include <sstream>
#include <math.h>
+#include <cstring>
#include <osg/Notify>
--- src/osgPlugins/x/mesh.cpp
+++ src/osgPlugins/x/mesh.cpp
@@ -29,6 +29,9 @@
#include "directx.h"
#include <iostream>
+#include <cstring>
+#include <stdlib.h>
+
#include <osg/Notify>
--- src/osgPlugins/x/types.cpp
+++ src/osgPlugins/x/types.cpp
@@ -29,6 +29,7 @@
#include "types.h"
#include <iostream>
+#include <stdlib.h>
using namespace std;
--- src/osgText/DefaultFont.cpp
+++ src/osgText/DefaultFont.cpp
@@ -14,6 +14,7 @@
* OpenSceneGraph Public License for more details.
*/
+#include <stdlib.h>
#include "DefaultFont.h"
#include <osg/Notify>
--- src/osgViewer/ViewerBase.cpp
+++ src/osgViewer/ViewerBase.cpp
@@ -11,6 +11,8 @@
* OpenSceneGraph Public License for more details.
*/
+#include <cstring>
+
#include <osgViewer/ViewerBase>
#include <osgViewer/Renderer>
--- src/osgViewer/ViewerEventHandlers.cpp
+++ src/osgViewer/ViewerEventHandlers.cpp
@@ -12,6 +12,7 @@
*/
#include <stdlib.h>
+#include <climits>
#include <fstream>
#include <osgViewer/Viewer>