Added check for pwd.h.
This commit is contained in:
parent
97a003fc37
commit
ff4525ce84
|
@ -11158,6 +11158,7 @@ done
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_header in \
|
||||
|
@ -11186,6 +11187,7 @@ for ac_header in \
|
|||
netinet/ip.h \
|
||||
netinet/tcp.h \
|
||||
pty.h \
|
||||
pwd.h \
|
||||
resolv.h \
|
||||
sched.h \
|
||||
scsi/sg.h \
|
||||
|
|
|
@ -907,6 +907,7 @@ AC_CHECK_HEADERS(\
|
|||
netinet/ip.h \
|
||||
netinet/tcp.h \
|
||||
pty.h \
|
||||
pwd.h \
|
||||
resolv.h \
|
||||
sched.h \
|
||||
scsi/sg.h \
|
||||
|
|
|
@ -344,6 +344,9 @@
|
|||
/* Define to 1 if you have the <pty.h> header file. */
|
||||
#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. */
|
||||
#undef HAVE_PWRITE
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "wine/port.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -30,6 +29,10 @@
|
|||
#include <sys/stat.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_root_prefix = "/tmp/.wine-"; /* prefix for server root dir */
|
||||
static const char * const server_dir_prefix = "/server-"; /* prefix for server dir */
|
||||
|
|
Loading…
Reference in New Issue