X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_select.c;h=3a06c64828ed914f89637cdf4d0f0405220a4d51;hb=880d107;hp=a748e60951b7724cddb3d4d85987ed4685208a1b;hpb=a9fb2254a2281f68060f4b18ddd30566a5f551a8;p=gnulib.git diff --git a/tests/test-sys_select.c b/tests/test-sys_select.c index a748e6095..3a06c6482 100644 --- a/tests/test-sys_select.c +++ b/tests/test-sys_select.c @@ -1,10 +1,10 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* Written by Bruno Haible , 2007. */ @@ -21,8 +20,16 @@ #include +/* Check that the 'struct timeval' type is defined. */ +struct timeval t1; + int -main () +main (void) { + /* Check that FD_ZERO can be used. This should not yield a warning + such as "warning: implicit declaration of function 'memset'". */ + fd_set fds; + FD_ZERO (&fds); + return 0; }