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:
parent
0a5cb15f94
commit
4f27b78fb4
|
@ -13414,6 +13414,7 @@ for ac_func in \
|
||||||
port_create \
|
port_create \
|
||||||
prctl \
|
prctl \
|
||||||
pread \
|
pread \
|
||||||
|
proc_pidinfo \
|
||||||
pwrite \
|
pwrite \
|
||||||
readdir \
|
readdir \
|
||||||
readlink \
|
readlink \
|
||||||
|
|
|
@ -2041,6 +2041,7 @@ AC_CHECK_FUNCS(\
|
||||||
port_create \
|
port_create \
|
||||||
prctl \
|
prctl \
|
||||||
pread \
|
pread \
|
||||||
|
proc_pidinfo \
|
||||||
pwrite \
|
pwrite \
|
||||||
readdir \
|
readdir \
|
||||||
readlink \
|
readlink \
|
||||||
|
|
|
@ -2046,7 +2046,7 @@ static unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entri
|
||||||
|
|
||||||
procstat_close( pstat );
|
procstat_close( pstat );
|
||||||
return 0;
|
return 0;
|
||||||
#elif defined(HAVE_LIBPROC_H)
|
#elif defined(HAVE_PROC_PIDINFO)
|
||||||
struct proc_fdinfo *fds;
|
struct proc_fdinfo *fds;
|
||||||
struct socket_fdinfo sock;
|
struct socket_fdinfo sock;
|
||||||
unsigned int i, j, n, fd_len;
|
unsigned int i, j, n, fd_len;
|
||||||
|
|
|
@ -633,6 +633,9 @@
|
||||||
/* Define to 1 if you have the <process.h> header file. */
|
/* Define to 1 if you have the <process.h> header file. */
|
||||||
#undef HAVE_PROCESS_H
|
#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. */
|
/* Define to 1 if you have the `pthread_attr_get_np' function. */
|
||||||
#undef HAVE_PTHREAD_ATTR_GET_NP
|
#undef HAVE_PTHREAD_ATTR_GET_NP
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue