# HG changeset patch # User Bruno Haible # Date 1091824748 0 # Node ID dc1fbdf89b318feeff7a42e6691cb784054ad54e # Parent 965e5e2eaeacad2b099cd374c824dd2dd8b8c25e 2004-08-01 Simon Josefsson Include stdlib.h, for free(). diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-08-01 Simon Josefsson + + * xgetdomainname.c: Include stdlib.h, for free(). + 2004-08-02 Simon Josefsson * getsubopt.h: New file, with comments from Bruno Haible. diff --git a/lib/xgetdomainname.c b/lib/xgetdomainname.c --- a/lib/xgetdomainname.c +++ b/lib/xgetdomainname.c @@ -1,5 +1,6 @@ /* xgetdomainname.c -- Return the NIS domain name, without size limitations. - Copyright (C) 1992, 1996, 2000, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1992, 1996, 2000, 2001, 2003, 2004 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 +31,9 @@ /* Get errno. */ #include +/* Get free. */ +#include + #include "xalloc.h" #ifndef INITIAL_DOMAINNAME_LENGTH