X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ioctl.c;h=489bccc3ea7c54ded44745a8fc6dfabb87b8f154;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=130ee427c442cdf9cafeca4186562adba013a69a;hpb=51d52a0ead4cba6265ed499a5249119294a720de;p=gnulib.git diff --git a/tests/test-ioctl.c b/tests/test-ioctl.c index 130ee427c..489bccc3e 100644 --- a/tests/test-ioctl.c +++ b/tests/test-ioctl.c @@ -1,5 +1,5 @@ /* Test of ioctl() function. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ SIGNATURE_CHECK (ioctl, int, (int, int, ...)); #include +#include #include "macros.h" @@ -39,6 +40,7 @@ main (void) } { int value; + close (99); errno = 0; ASSERT (ioctl (99, FIONREAD, &value) == -1); ASSERT (errno == EBADF);