X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_socket.c;h=8316f9ae9d8c6439da0b77ba2d329672cedcc0e5;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=a6e99d6008ab39b24500a61053ba21243e5e9ba0;hpb=06d76f63c628cb1653f3c27a1f60a46cf44665ba;p=gnulib.git diff --git a/tests/test-sys_socket.c b/tests/test-sys_socket.c index a6e99d600..8316f9ae9 100644 --- a/tests/test-sys_socket.c +++ b/tests/test-sys_socket.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2014 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 @@ -30,6 +30,10 @@ int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; /* Check that the 'socklen_t' type is defined. */ socklen_t t1; +/* Check that the 'size_t' and 'ssize_t' types are defined. */ +size_t t2; +ssize_t t3; + /* Check that 'struct iovec' is defined. */ struct iovec io; @@ -43,7 +47,7 @@ main (void) sa_family_t i; /* Check some errno values. */ - switch (0) + switch (ENOTSOCK) { case ENOTSOCK: case EADDRINUSE: