diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-12-05 13:57:49 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-12-05 13:57:49 +0000 |
commit | 39385fd61586ec417d8a4a115c00c966ee51276f (patch) | |
tree | c7b0677fc783505adc3bc4c58840cf01fc1acc9a /lib | |
parent | 1b98d2bd80c41d59b6b12a74ef5593ca37a917cd (diff) | |
download | paxutils-39385fd61586ec417d8a4a115c00c966ee51276f.tar.gz |
Changes needed for cpio mingw build:
* lib/system.h: Include pwd.h and grp.h if the corresponding HAVE_
preprocessor symbols are defined.
* m4/system.m4 (AC_CHECK_HEADERS_ONCE): Add pwd.h and grp.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/system.h b/lib/system.h index bfddf76..2deb585 100644 --- a/lib/system.h +++ b/lib/system.h @@ -453,6 +453,13 @@ char *getenv (); #define _(msgid) gettext (msgid) #define N_(msgid) msgid +#ifdef HAVE_PWD_H +# include <pwd.h> +#endif +#ifdef HAVE_GRP_H +# include <grp.h> +#endif + #if MSDOS # include <process.h> # define SET_BINARY_MODE(arc) setmode(arc, O_BINARY) @@ -461,8 +468,6 @@ char *getenv (); # define TTY_NAME "con" # define sys_reset_uid_gid() #else -# include <pwd.h> -# include <grp.h> # define SET_BINARY_MODE(arc) # define ERRNO_IS_EACCES 0 # define TTY_NAME "/dev/tty" |