Patchwork [libfortran,committed] Remove configure check for unused fdopen function

login
register
mail settings
Submitter Janne Blomqvist
Date Jan. 12, 2012, 10:32 a.m.
Message ID <CAO9iq9FihaQmNALCMR7hSG3_tKsh2rVr9Rrq4QJrJj4xvAW6Wg@mail.gmail.com>
Download mbox | patch
Permalink /patch/135614/
State New
Headers show

Comments

Janne Blomqvist - Jan. 12, 2012, 10:32 a.m.
Committed the patch below as obvious.

2012-01-12  Janne Blomqvist  <jb@gcc.gnu.org>

	* configure.ac: Remove check for fdopen.
	* runtime/backtrace.c (CAN_PIPE): Fix comment, remove check for
	fdopen.
	* configure: Regenerated.
	* config.h.in: Regenerated.

Patch

Index: configure.ac
===================================================================
--- configure.ac        (revision 183121)
+++ configure.ac        (working copy)
@@ -263,7 +263,7 @@  AC_CHECK_MEMBERS([struct stat.st_blksize
 # Check for library functions.
 AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \
 ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \
-alarm access fork execl wait setmode execve pipe dup2 close fdopen \
+alarm access fork execl wait setmode execve pipe dup2 close \
 strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \
 getcwd localtime_r gmtime_r strerror_r getpwuid_r ttyname_r clock_gettime \
 readlink getgid getpid getppid getuid geteuid)
Index: runtime/backtrace.c
===================================================================
--- runtime/backtrace.c (revision 183121)
+++ runtime/backtrace.c (working copy)
@@ -40,13 +40,12 @@  see the files COPYING3 and COPYING.RUNTI
 #include "unwind.h"


-/* Macros for common sets of capabilities: can we fork and exec, can
-   we use glibc-style backtrace functions, and can we use pipes.  */
+/* Macros for common sets of capabilities: can we fork and exec, and
+   can we use pipes to communicate with the subprocess.  */
 #define CAN_FORK (defined(HAVE_FORK) && defined(HAVE_EXECVE) \
                  && defined(HAVE_WAIT))
 #define CAN_PIPE (CAN_FORK && defined(HAVE_PIPE) \
-                 && defined(HAVE_DUP2) && defined(HAVE_FDOPEN) \
-                 && defined(HAVE_CLOSE))
+                 && defined(HAVE_DUP2) && defined(HAVE_CLOSE))

 #ifndef PATH_MAX
 #define PATH_MAX 4096