]> granicus.if.org Git - shadow/commitdiff
* lib/defines.h: Do not include <config.h>. This complicate
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 6 Sep 2008 15:58:23 +0000 (15:58 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 6 Sep 2008 15:58:23 +0000 (15:58 +0000)
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.

ChangeLog
lib/defines.h
libmisc/xgetXXbyYY.c
libmisc/xgetgrgid.c
libmisc/xgetgrnam.c
libmisc/xgetpwnam.c
libmisc/xgetpwuid.c
libmisc/xgetspnam.c

index 1d317ad03a5aa1b13ba65605060529dda9317389..27f90ee27d118831c1ab0c81b5b2f3b7f5b3da9c 100644 (file)
--- a/ChangeLog
+++ b/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>
 
        * src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
index 8381d82c6d0654b8dd572cd17bf66bf77791507c..1014ea9db88856a4caf3df7de280e606631d572d 100644 (file)
@@ -4,8 +4,6 @@
 #ifndef _DEFINES_H_
 #define _DEFINES_H_
 
-#include <config.h>
-
 #if HAVE_STDBOOL_H
 # include <stdbool.h>
 #else
index 62c3c3af87eb3696613ef5c509a300eb17fac2a5..db41a18e1ab58db1bca636c75a7705bc8f4fb3fc 100644 (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)
index 6b9f7f04cbffc48951f2ffbcb2328ad83acd1f80..f691974087aa8e8264b522df3fc9e669604d2a61 100644 (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
index 3a8cbb6d7a18920e8008bffc5ac5f19e97ff800f..3f1604148a13f81a109df4303e281ef1337d6a0e 100644 (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
index da5f1c782d93a1fe3ec8f6bce486a31f240e1556..6b59248de7a4eb7a3a5064b5a677ea9fd24337e4 100644 (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
index 6f652e73d4cd2721e1f540e030591bf57acac0e1..f0fb04c987e4eb0bf3600f188d3be109e6b8a74f 100644 (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
index abfa95fd929dfc34709d120687dc01fad8a71fb0..1705139acc0d1756ab76fce34458f7a808c14c71 100644 (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