Francois Gouget : rpcrt4: Fix some conditional includes.

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 15 04:51:58 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 325912de986c98c0ff0e448a3c17fafc95dc485c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=325912de986c98c0ff0e448a3c17fafc95dc485c

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri May 12 00:27:02 2006 +0200

rpcrt4: Fix some conditional includes.

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.

---

 dlls/rpcrt4/rpc_transport.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index 86b4303..0db5b6a 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -29,20 +29,20 @@ #include <stdio.h>
 #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-cvs mailing list