Patchwork [v3] check-performance compile fail cleanup

login
register
mail settings
Submitter Benjamin Kosnik
Date Aug. 4, 2011, 2:29 a.m.
Message ID <20110803192903.2b5192ab@shotwell>
Download mbox | patch
Permalink /patch/108334/
State New
Headers show

Comments

Benjamin Kosnik - Aug. 4, 2011, 2:29 a.m.
These tests recently started failing at compile time for me due to no
declarations for unlink due to no include of unistd.h. So, I did the
obvious thing and included it.

tested x86/linux

-benjamin

Patch

2011-08-03  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/performance/27_io/filebuf_sputn_unbuf.cc: Include
	unistd.h for unlink.
	* testsuite/performance/27_io/ofstream_insert_int.cc: Same.
	* testsuite/performance/27_io/ifstream_extract_int.cc: Same.
	* testsuite/performance/27_io/ifstream_getline-2.cc: Same.
	* testsuite/performance/27_io/fstream_seek_write.cc: Same.
	* testsuite/performance/27_io/ifstream_extract_chars.cc: Same.
	* testsuite/performance/27_io/ofstream_insert_float.cc: Same.
	* testsuite/performance/27_io/ifstream_extract_float.cc: Same.
	* testsuite/performance/27_io/filebuf_sputc.cc: Same.

Index: testsuite/performance/27_io/filebuf_sputn_unbuf.cc
===================================================================
--- testsuite/performance/27_io/filebuf_sputn_unbuf.cc	(revision 177306)
+++ testsuite/performance/27_io/filebuf_sputn_unbuf.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <cstdio>
 #include <fstream>
 #include <testsuite_performance.h>
Index: testsuite/performance/27_io/ofstream_insert_int.cc
===================================================================
--- testsuite/performance/27_io/ofstream_insert_int.cc	(revision 177306)
+++ testsuite/performance/27_io/ofstream_insert_int.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <fstream>
 #include <testsuite_performance.h>
 
Index: testsuite/performance/27_io/ifstream_extract_int.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_int.cc	(revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_int.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <fstream>
 #include <testsuite_performance.h>
 
Index: testsuite/performance/27_io/ifstream_getline-2.cc
===================================================================
--- testsuite/performance/27_io/ifstream_getline-2.cc	(revision 177306)
+++ testsuite/performance/27_io/ifstream_getline-2.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <cstdio>
 #include <fstream>
 #include <string>
Index: testsuite/performance/27_io/fstream_seek_write.cc
===================================================================
--- testsuite/performance/27_io/fstream_seek_write.cc	(revision 177306)
+++ testsuite/performance/27_io/fstream_seek_write.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <fstream>
 #include <testsuite_performance.h>
 
Index: testsuite/performance/27_io/ifstream_extract_chars.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_chars.cc	(revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_chars.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <cstdio>
 #include <fstream>
 #include <string>
Index: testsuite/performance/27_io/ofstream_insert_float.cc
===================================================================
--- testsuite/performance/27_io/ofstream_insert_float.cc	(revision 177306)
+++ testsuite/performance/27_io/ofstream_insert_float.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <fstream>
 #include <sstream>
 #include <testsuite_performance.h>
Index: testsuite/performance/27_io/ifstream_extract_float.cc
===================================================================
--- testsuite/performance/27_io/ifstream_extract_float.cc	(revision 177306)
+++ testsuite/performance/27_io/ifstream_extract_float.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2004, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <fstream>
 #include <sstream>
 #include <testsuite_performance.h>
Index: testsuite/performance/27_io/filebuf_sputc.cc
===================================================================
--- testsuite/performance/27_io/filebuf_sputc.cc	(revision 177306)
+++ testsuite/performance/27_io/filebuf_sputc.cc	(working copy)
@@ -1,4 +1,4 @@ 
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -15,7 +15,7 @@ 
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
+#include <unistd.h>
 #include <cstdio>
 #include <fstream>
 #include <testsuite_performance.h>