[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] xgetdomainname.c should include stdlib.h
From: |
Simon Josefsson |
Subject: |
[Bug-gnulib] xgetdomainname.c should include stdlib.h |
Date: |
Sun, 18 Apr 2004 15:09:14 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Or maybe xalloc.h should include stdlib.h? It does define a macro
that uses free; but it is marked as deprecated...
2004-04-18 Simon Josefsson <address@hidden>
* xgetdomainname.c: Include stdlib.h, for free.
Index: xgetdomainname.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xgetdomainname.c,v
retrieving revision 1.2
diff -u -p -u -w -r1.2 xgetdomainname.c
--- xgetdomainname.c 25 Sep 2003 11:01:25 -0000 1.2
+++ xgetdomainname.c 18 Apr 2004 13:08:09 -0000
@@ -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
@@ -29,6 +30,9 @@
/* Get errno. */
#include <errno.h>
+
+/* Get free. */
+#include <stdlib.h>
#include "xalloc.h"