rpcrt4: Fix some conditional includes
Francois Gouget
fgouget at free.fr
Thu May 11 17:27:02 CDT 2006
Changelog:
* dlls/rpcrt4/rpc_transport.c
Francois Gouget <fgouget at free.fr>
Check for HAVE_UNISTD_H before including unistd.h.
There is no HAVE_SYS_TYPES to check.
Tweak the indentation of a few #include directives.
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
Nouvelle version : les anciens bogues ont été remplacés par de nouveaux.
-------------- next part --------------
Index: dlls/rpcrt4/rpc_transport.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/rpc_transport.c,v
retrieving revision 1.8
diff -u -p -r1.8 rpc_transport.c
--- dlls/rpcrt4/rpc_transport.c 7 May 2006 08:37:38 -0000 1.8
+++ dlls/rpcrt4/rpc_transport.c 11 May 2006 20:57:51 -0000
@@ -29,20 +29,20 @@
#include <string.h>
#include <assert.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <fcntl.h>
#include <stdlib.h>
-#ifdef HAVE_SYS_TYPES
#include <sys/types.h>
-#endif
#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
+# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
+# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
+# include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
More information about the wine-patches
mailing list