* 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:
parent
e48fb58753
commit
f34a638b38
10
ChangeLog
10
ChangeLog
@ -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>
|
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
|
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
#ifndef _DEFINES_H_
|
#ifndef _DEFINES_H_
|
||||||
#define _DEFINES_H_
|
#define _DEFINES_H_
|
||||||
|
|
||||||
#include <config.h>
|
|
||||||
|
|
||||||
#if HAVE_STDBOOL_H
|
#if HAVE_STDBOOL_H
|
||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#else
|
#else
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <config.h>
|
#include <errno.h>
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
|
|
||||||
#define XFUNCTION_NAME XPREFIX (FUNCTION_NAME)
|
#define XFUNCTION_NAME XPREFIX (FUNCTION_NAME)
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include "groupio.h"
|
#include "groupio.h"
|
||||||
|
|
||||||
#define LOOKUP_TYPE struct group
|
#define LOOKUP_TYPE struct group
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include "groupio.h"
|
#include "groupio.h"
|
||||||
|
|
||||||
#define LOOKUP_TYPE struct group
|
#define LOOKUP_TYPE struct group
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include "pwio.h"
|
#include "pwio.h"
|
||||||
|
|
||||||
#define LOOKUP_TYPE struct passwd
|
#define LOOKUP_TYPE struct passwd
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include "pwio.h"
|
#include "pwio.h"
|
||||||
|
|
||||||
#define LOOKUP_TYPE struct passwd
|
#define LOOKUP_TYPE struct passwd
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
* This file provide wrapper to the getpwnam or getpwnam_r functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
#include "shadowio.h"
|
#include "shadowio.h"
|
||||||
|
|
||||||
#define LOOKUP_TYPE struct spwd
|
#define LOOKUP_TYPE struct spwd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user