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.
oldstable
Francois Gouget 2006-05-12 00:27:02 +02:00 committed by Alexandre Julliard
parent adf52cda04
commit 325912de98
1 changed files with 6 additions and 6 deletions

View File

@ -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>