PATCH: fix dlls/iphlpapi compilation
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Tue May 13 03:29:05 CDT 2003
The addition of dlls/iphlpapi broke non-Linux systems quite a bit; this
fixing some of the worst issues.
ChangeLog:
Add missing #includes for non-Linux systems.
Index: iphlpapi_main.c
===================================================================
RCS file: /home/wine/wine/dlls/iphlpapi/iphlpapi_main.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 iphlpapi_main.c
--- iphlpapi_main.c 13 May 2003 03:32:20 -0000 1.1
+++ iphlpapi_main.c 13 May 2003 08:25:07 -0000
@@ -21,6 +21,8 @@
#include "config.h"
#include <stdlib.h>
+#include <sys/types.h>
+#include <netinet/in.h>
#include <resolv.h>
#include "winbase.h"
#include "iphlpapi.h"
Index: ipstats.c
===================================================================
RCS file: /home/wine/wine/dlls/iphlpapi/ipstats.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 ipstats.c
--- ipstats.c 13 May 2003 03:32:20 -0000 1.1
+++ ipstats.c 13 May 2003 08:25:10 -0000
@@ -23,15 +23,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
+#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
#if HAVE_NET_IF_H
#include <net/if.h>
#endif
-
#if HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
-
#if HAVE_NETINET_TCP_FSM_H
#include <netinet/tcp_fsm.h>
#endif
More information about the wine-patches
mailing list