diff modules/unlockpt @ 15979:69cc1dcd696b

unlockpt: Detect invalid argument. * lib/unlockpt.c: Include <fcntl.h>. (unlockpt): Check whether fd is valid, using fcntl(). * modules/unlockpt (Depends-on): Add fcntl-h.
author Bruno Haible <bruno@clisp.org>
date Fri, 21 Oct 2011 02:22:04 +0200
parents d28ebf7351e2
children
line wrap: on
line diff
--- a/modules/unlockpt
+++ b/modules/unlockpt
@@ -9,6 +9,7 @@
 Depends-on:
 stdlib
 extensions
+fcntl-h         [test $HAVE_UNLOCKPT = 0]
 ptsname         [test $HAVE_UNLOCKPT = 0]
 
 configure.ac: