X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_time.c;h=1389b52008df080d038d841f8adc3d6daa13f3eb;hb=c50edd6462eaaae00f8549f9bad99d4e68b94376;hp=83c723164d4959c6758f31d875d4679dbb489b4b;hpb=64a28ff9f4b4a278aec1c48381616a3a9738b3f3;p=gnulib.git diff --git a/tests/test-sys_time.c b/tests/test-sys_time.c index 83c723164..1389b5200 100644 --- a/tests/test-sys_time.c +++ b/tests/test-sys_time.c @@ -1,10 +1,10 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2013 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,10 +20,14 @@ #include +/* Check that the 'struct timeval' type is defined. */ struct timeval a; +/* Check that &a.tv_sec is a 'time_t *', ignoring signedness issues. */ +typedef int verify_tv_sec_type[sizeof (a.tv_sec) == sizeof (time_t) ? 1 : -1]; + int -main () +main (void) { return 0; }