Added check for pwd.h.

This commit is contained in:
Steven Edwards 2002-06-24 23:00:25 +00:00 committed by Alexandre Julliard
parent 97a003fc37
commit ff4525ce84
4 changed files with 10 additions and 1 deletions

2
configure vendored
View File

@ -11158,6 +11158,7 @@ done
for ac_header in \ for ac_header in \
@ -11186,6 +11187,7 @@ for ac_header in \
netinet/ip.h \ netinet/ip.h \
netinet/tcp.h \ netinet/tcp.h \
pty.h \ pty.h \
pwd.h \
resolv.h \ resolv.h \
sched.h \ sched.h \
scsi/sg.h \ scsi/sg.h \

View File

@ -907,6 +907,7 @@ AC_CHECK_HEADERS(\
netinet/ip.h \ netinet/ip.h \
netinet/tcp.h \ netinet/tcp.h \
pty.h \ pty.h \
pwd.h \
resolv.h \ resolv.h \
sched.h \ sched.h \
scsi/sg.h \ scsi/sg.h \

View File

@ -344,6 +344,9 @@
/* Define to 1 if you have the <pty.h> header file. */ /* Define to 1 if you have the <pty.h> header file. */
#undef HAVE_PTY_H #undef HAVE_PTY_H
/* Define to 1 if you have the <pwd.h> header file. */
#undef HAVE_PWD_H
/* Define to 1 if you have the `pwrite' function. */ /* Define to 1 if you have the `pwrite' function. */
#undef HAVE_PWRITE #undef HAVE_PWRITE

View File

@ -22,7 +22,6 @@
#include "wine/port.h" #include "wine/port.h"
#include <errno.h> #include <errno.h>
#include <pwd.h>
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
@ -30,6 +29,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
static const char * const server_config_dir = "/.wine"; /* config dir relative to $HOME */ static const char * const server_config_dir = "/.wine"; /* config dir relative to $HOME */
static const char * const server_root_prefix = "/tmp/.wine-"; /* prefix for server root dir */ static const char * const server_root_prefix = "/tmp/.wine-"; /* prefix for server root dir */
static const char * const server_dir_prefix = "/server-"; /* prefix for server dir */ static const char * const server_dir_prefix = "/server-"; /* prefix for server dir */