Use F_GETFD rather than F_GETFL to check validity of file descriptor
authorUlf Hermann <ulf.hermann@qt.io>
Thu, 20 Apr 2017 13:58:43 +0000 (15:58 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 2 May 2017 11:18:40 +0000 (13:18 +0200)
commitfd9e7345b41eb2d6c11e0b8679e19df68e20171e
treeb6af3298386a63783597c260249f10531621e8ab
parentc73a00d82bbb7196c517f61cdf14c09b2b16a668
Use F_GETFD rather than F_GETFL to check validity of file descriptor

F_GETFD is both cheaper and easier to port, and otherwise has the same
effect here.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
libelf/ChangeLog
libelf/elf_begin.c