]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: drop unused <sys/syslimits.h> header
authorEric Blake <eblake@redhat.com>
Mon, 16 May 2011 19:27:42 +0000 (13:27 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 17 May 2011 15:34:11 +0000 (09:34 -0600)
<sys/syslimits.h> is not standardized, so portable programs should
not need to rely on it.  If there really is something that we need
where <sys/syslimits.h> provided the limit but <limits.h> did not,
then that would be a candidate for fixing in gnulib.  But this patch
did not turn up any compilation failures on Linux.

* src/internal.h (includes): Drop unused header.
* daemon/libvirtd.h (includes): Likewise.
* configure.ac (AC_CHECK_HEADERS): Likewise.
Based on a report by Matthias Bolte.

configure.ac
daemon/libvirtd.h
src/internal.h

index 4f5c2d71bcea91fc6aecc93a7c701175e41f69b7..233e4afa51e7c3d30fc6ca64659586663e96577b 100644 (file)
@@ -133,7 +133,7 @@ AC_CHECK_FUNCS([pthread_sigmask pthread_mutexattr_init])
 LIBS=$old_libs
 
 dnl Availability of various common headers (non-fatal if missing).
-AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/syslimits.h sys/un.h \
+AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/un.h \
   sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h \
   sys/un.h sys/syscall.h])
 
index d37c3fd648344b8a70ec994c000098f14496058b..ea00d5c421c63c24133deca29036e4e6f6712583 100644 (file)
 #  include <dbus/dbus.h>
 # endif
 
-# ifdef HAVE_SYS_SYSLIMITS_H
-#  include <sys/syslimits.h>
-# endif
-
 # include <rpc/types.h>
 # include <rpc/xdr.h>
 # include "remote_protocol.h"
index 0fa097c7dcf084d483ffb675c2346fbb6984480d..5747a90c0263f428fc8050ddf9301bad75fa928a 100644 (file)
 #  define sa_assert(expr) /* empty */
 # endif
 
-# ifdef HAVE_SYS_SYSLIMITS_H
-#  include <sys/syslimits.h>
-# endif
-
 /* The library itself is allowed to use deprecated functions /
  * variables, so effectively undefine the deprecated attribute
  * which would otherwise be defined in libvirt.h.