summaryrefslogtreecommitdiffstats
path: root/src/proto.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-15 12:25:28 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-15 12:25:28 +0100
commitdec73f70fc5320faec46a21f27aae6748cea3450 (patch)
tree93604722588028e9a77e9ab38807568c6ec059d7 /src/proto.c
parentcd8976a5b52425f9d7c45249e1a593a341d91c52 (diff)
downloadlibguestfs-dec73f70fc5320faec46a21f27aae6748cea3450.tar.gz
libguestfs-dec73f70fc5320faec46a21f27aae6748cea3450.tar.xz
libguestfs-dec73f70fc5320faec46a21f27aae6748cea3450.zip
syntax: Remove HAVE_*_H tests which are always true.
Gnulib supplies replacements for these headers, so there is no need to test.
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/proto.c b/src/proto.c
index ae62748c..439e81dc 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -34,33 +34,17 @@
#include <sys/select.h>
#include <dirent.h>
#include <signal.h>
-
-#include <rpc/types.h>
-#include <rpc/xdr.h>
-
-#ifdef HAVE_ERRNO_H
#include <errno.h>
-#endif
-
-#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
-#endif
-
-#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
-#endif
-
-#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
-#endif
-
#include <arpa/inet.h>
#include <netinet/in.h>
+#include <rpc/types.h>
+#include <rpc/xdr.h>
+
#include "c-ctype.h"
#include "glthread/lock.h"
#include "ignore-value.h"