X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-gethostname.c;h=45c223a2f870aefa38d9f0cd2c8cf29563b7b0f0;hb=66a236773eb7d9706db907339c65791355083a3d;hp=c1914fd9125ba9cc3e52bd486f7790a854133faf;hpb=4f2b5393249dec26fe8c47085642a317367202a3;p=gnulib.git diff --git a/tests/test-gethostname.c b/tests/test-gethostname.c index c1914fd91..45c223a2f 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-2011 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;