iphlpapi: Check for proc_pidinfo() instead of assuming libproc.h always defines it.

This is needed on FreeBSD 8.1.
This commit is contained in:
Francois Gouget 2013-09-03 17:36:05 +02:00 committed by Alexandre Julliard
parent 0a5cb15f94
commit 4f27b78fb4
4 changed files with 6 additions and 1 deletions

1
configure vendored
View File

@ -13414,6 +13414,7 @@ for ac_func in \
port_create \
prctl \
pread \
proc_pidinfo \
pwrite \
readdir \
readlink \

View File

@ -2041,6 +2041,7 @@ AC_CHECK_FUNCS(\
port_create \
prctl \
pread \
proc_pidinfo \
pwrite \
readdir \
readlink \

View File

@ -2046,7 +2046,7 @@ static unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entri
procstat_close( pstat );
return 0;
#elif defined(HAVE_LIBPROC_H)
#elif defined(HAVE_PROC_PIDINFO)
struct proc_fdinfo *fds;
struct socket_fdinfo sock;
unsigned int i, j, n, fd_len;

View File

@ -633,6 +633,9 @@
/* Define to 1 if you have the <process.h> header file. */
#undef HAVE_PROCESS_H
/* Define to 1 if you have the `proc_pidinfo' function. */
#undef HAVE_PROC_PIDINFO
/* Define to 1 if you have the `pthread_attr_get_np' function. */
#undef HAVE_PTHREAD_ATTR_GET_NP