* lib/defines.h: Do not include <config.h>. This complicate

undefining some configuration macros when the file is included
	multiple times.
	* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
	libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
	Include <config.h> from teh compiled C file, not the included
	getXXbyYY.c.
This commit is contained in:
nekral-guest 2008-09-06 15:58:23 +00:00
parent e48fb58753
commit f34a638b38
8 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Do not include <config.h>. This complicate
undefining some configuration macros when the file is included
multiple times.
* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
Include <config.h> from teh compiled C file, not the included
getXXbyYY.c.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,

View File

@ -4,8 +4,6 @@
#ifndef _DEFINES_H_
#define _DEFINES_H_
#include <config.h>
#if HAVE_STDBOOL_H
# include <stdbool.h>
#else

View File

@ -52,7 +52,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <config.h>
#include <errno.h>
#include "prototypes.h"
#define XFUNCTION_NAME XPREFIX (FUNCTION_NAME)

View File

@ -49,6 +49,8 @@
* This file provide wrapper to the getpwnam or getpwnam_r functions.
*/
#include <config.h>
#include "groupio.h"
#define LOOKUP_TYPE struct group

View File

@ -49,6 +49,8 @@
* This file provide wrapper to the getpwnam or getpwnam_r functions.
*/
#include <config.h>
#include "groupio.h"
#define LOOKUP_TYPE struct group

View File

@ -49,6 +49,8 @@
* This file provide wrapper to the getpwnam or getpwnam_r functions.
*/
#include <config.h>
#include "pwio.h"
#define LOOKUP_TYPE struct passwd

View File

@ -49,6 +49,8 @@
* This file provide wrapper to the getpwnam or getpwnam_r functions.
*/
#include <config.h>
#include "pwio.h"
#define LOOKUP_TYPE struct passwd

View File

@ -49,6 +49,8 @@
* This file provide wrapper to the getpwnam or getpwnam_r functions.
*/
#include <config.h>
#include "shadowio.h"
#define LOOKUP_TYPE struct spwd