iphlpapi: Move get_pid_map() and find_owning_pid() under #ifdef #ifdef __linux__.
Gerald Pfeifer
gerald at pfeifer.com
Sat Apr 21 17:51:44 CDT 2012
...like their sole user.
Otherwise this warns on everything which is not __linux__. ;-)
Gerald
---
dlls/iphlpapi/ipstats.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index f87e056..6e3822b 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -1715,6 +1715,8 @@ struct pid_map
unsigned int unix_pid;
};
+#ifdef __linux__
+
static struct pid_map *get_pid_map( unsigned int *num_entries )
{
HANDLE snapshot = NULL;
@@ -1810,6 +1812,8 @@ static unsigned int find_owning_pid( struct pid_map *map, unsigned int num_entri
#endif
}
+#endif
+
DWORD build_tcp_table( TCP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE heap, DWORD flags,
DWORD *size )
{
--
1.7.7.3
More information about the wine-patches
mailing list