dup2: remove test for existence of fcntl
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Jun 2011 08:56:52 +0000 (01:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Jun 2011 08:56:52 +0000 (01:56 -0700)
commitab867f51781b5153e6e4e88a6212174d7233df3a
tree179eadafcb68dd71928ef86dc5ea515b9f1b3122
parentcbfd25f0edf5f4b853e8ed2e01a4782ec80faba2
dup2: remove test for existence of fcntl

* m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
"#if HAVE_FCNTL", in the configure-time test program.
This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
and therefore speeds up "configure" a bit.  Found while
adding the dup2 module to Emacs.
ChangeLog
m4/dup2.m4