X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-gethostname.c;h=c500f416097d1a7d33d220aae7dfe97f8e4549f5;hb=880d107;hp=c1914fd9125ba9cc3e52bd486f7790a854133faf;hpb=4f2b5393249dec26fe8c47085642a317367202a3;p=gnulib.git diff --git a/tests/test-gethostname.c b/tests/test-gethostname.c index c1914fd91..c500f4160 100644 --- a/tests/test-gethostname.c +++ b/tests/test-gethostname.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2009 Free Software Foundation + * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. * Written by Simon Josefsson. * * This program is free software: you can redistribute it and/or modify @@ -17,8 +17,15 @@ #include +/* Get gethostname() declaration. */ #include +#include "signature.h" +SIGNATURE_CHECK (gethostname, int, (char *, size_t)); + +/* Get HOST_NAME_MAX definition. */ +#include + #include #include #include @@ -26,7 +33,7 @@ #define NOHOSTNAME "magic-gnulib-test-string" int -main (int argc, char *argv[]) +main (int argc, char *argv[] _GL_UNUSED) { char buf[HOST_NAME_MAX]; int rc;