  
  CvCalibFilter::CvCalibFilter()
  {
-@@ -686,8 +689,8 @@
+@@ -686,8 +689,8 @@ bool CvCalibFilter::SaveCameraParams( const char* filename )
          {
              for( j = 0; j < 4; j++ )
              {

                                 stereoparams->coeffs[1],
                                 0);
 
diff -Naur opencv-2.4.7/modules/core/src/system.cpp opencv-2.4.7.nacl/modules/core/src/system.cpp
--- opencv-2.4.7/modules/core/src/system.cpp        2013-11-06 15:26:39.000000000 +0100
+++ opencv-2.4.7.nacl/modules/core/src/system.cpp   2013-11-19 22:18:14.000000000 +0100
@@ -460,6 +460,10 @@
     const int fd = mkstemp((char*)fname.c_str());
     if (fd == -1) return string();
 
+# ifndef __native_client__
     close(fd);
+# else
+    fclose((FILE*)fd);
+# endif  //#ifndef __native_client__
     remove(fname.c_str());
 # endif

 
 #define EPS64D 1e-9
 
@@ -312,11 +315,11 @@ int icvComputeCoeffForStereo(  CvStereoCamera* stereoCamera)
     int i;
     for( i = 0; i < 4; i++ )
     {
