dlls/iphlpapi/ipstats.c: #ifdef __linux__

Austin English austinenglish at gmail.com
Mon Mar 9 04:06:36 CDT 2009


On Sun, Mar 8, 2009 at 6:28 PM, Gerald Pfeifer <gerald at pfeifer.com> wrote:
> ChangeLog:
> append_udp_row is only used on Linux.
>
> Index: dlls/iphlpapi/ipstats.c
> ===================================================================
> RCS file: /home/wine/wine/dlls/iphlpapi/ipstats.c,v
> retrieving revision 1.71
> diff -u -3 -p -r1.71 ipstats.c
> --- dlls/iphlpapi/ipstats.c     6 Mar 2009 16:00:36 -0000       1.71
> +++ dlls/iphlpapi/ipstats.c     8 Mar 2009 23:27:39 -0000
> @@ -1269,7 +1269,7 @@ done:
>     return ret;
>  }
>
> -
> +#ifdef __linux__
>  static MIB_UDPTABLE *append_udp_row( HANDLE heap, DWORD flags, MIB_UDPTABLE *table,
>                                      DWORD *count, const MIB_UDPROW *row )
>  {
> @@ -1289,6 +1289,7 @@ static MIB_UDPTABLE *append_udp_row( HAN
>     memcpy( &table->table[table->dwNumEntries++], row, sizeof(*row) );
>     return table;
>  }
> +#endif
>
>  static int compare_udp_rows(const void *a, const void *b)
>  {
>
>
>

I already submitted this patch, but it was rejected. The function
should be used on BSD, but needs to be implemented. See:
http://www.winehq.org/pipermail/wine-devel/2009-March/073723.html
http://www.winehq.org/pipermail/wine-devel/2009-March/073730.html

--
-Austin



More information about the wine-devel mailing list