X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-getsockopt.c;h=7bbf73cb387740c63987287d54971577133be5e6;hb=c9451e3bdc651a742f06b46a450497e59bb5e006;hp=24730b01a9b6f51331e6cffc3103267782b0fec1;hpb=3888ec889ae709349cc7d9f7c1707dedbff2e130;p=gnulib.git diff --git a/tests/test-getsockopt.c b/tests/test-getsockopt.c index 24730b01a..7bbf73cb3 100644 --- a/tests/test-getsockopt.c +++ b/tests/test-getsockopt.c @@ -1,5 +1,5 @@ /* Test getsockopt() function. - Copyright (C) 2011-2012 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 @@ -22,6 +22,7 @@ SIGNATURE_CHECK (getsockopt, int, (int, int, int, void *, socklen_t *)); #include +#include #include "sockets.h" #include "macros.h" @@ -45,6 +46,7 @@ main (void) int value; socklen_t value_len = sizeof (value); + close (99); errno = 0; ASSERT (getsockopt (99, SOL_SOCKET, SO_REUSEADDR, &value, &value_len) == -1);