diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkstemp-safer.c | 4 | ||||
-rw-r--r-- | lib/mkstemp.c | 9 | ||||
-rw-r--r-- | lib/stdlib--.h | 3 |
3 files changed, 9 insertions, 7 deletions
diff --git a/lib/mkstemp-safer.c b/lib/mkstemp-safer.c index c8c5bbd6e4..ff1c0d484a 100644 --- a/lib/mkstemp-safer.c +++ b/lib/mkstemp-safer.c @@ -1,6 +1,6 @@ /* Invoke mkstemp, but avoid some glitches. - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007 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,7 +22,7 @@ #include "stdlib-safer.h" -#include "mkstemp.h" +#include <stdlib.h> #include "unistd-safer.h" /* Like mkstemp, but do not return STDIN_FILENO, STDOUT_FILENO, or diff --git a/lib/mkstemp.c b/lib/mkstemp.c index 34c9e474c0..57ee228e85 100644 --- a/lib/mkstemp.c +++ b/lib/mkstemp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2001, 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999, 2001, 2005, 2006, 2007 Free Software Foundation, Inc. This file is derived from the one in the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -17,14 +17,17 @@ #if !_LIBC # include <config.h> -# include "mkstemp.h" +#endif + +#include <stdlib.h> + +#if !_LIBC # include "tempname.h" # define __gen_tempname gen_tempname # define __GT_FILE GT_FILE #endif #include <stdio.h> -#include <stdlib.h> #ifndef __GT_FILE # define __GT_FILE 0 diff --git a/lib/stdlib--.h b/lib/stdlib--.h index b43b3dae6d..61d6ebe222 100644 --- a/lib/stdlib--.h +++ b/lib/stdlib--.h @@ -1,6 +1,6 @@ /* Like stdlib.h, but redefine some names to avoid glitches. - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007 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 @@ -21,6 +21,5 @@ #include <stdlib.h> #include "stdlib-safer.h" -#include "mkstemp.h" #undef mkstemp #define mkstemp mkstemp_safer |