Remove #ifdef HAVE_UTIL_H wrapper. ok djm@
12 files changed:
ucred.h \
unistd.h \
usersec.h \
- util.h \
utime.h \
utmp.h \
utmpx.h \
# the equivalent file. This avoids having to wrap those includes in
# '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes.
compatincludes=no
-AC_CHECK_HEADERS([paths.h poll.h stdint.h], [], [
+AC_CHECK_HEADERS([paths.h poll.h stdint.h util.h], [], [
compatincludes="`pwd`/openbsd-compat/include"
mkdir -p "$compatincludes"
case "$ac_header" in
#include "ssherr.h"
#include "misc.h"
-#ifdef HAVE_UTIL_H
# include <util.h>
-#endif
#ifdef USE_WTMPDB
# include <wtmpdb.h>
#include <poll.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
+#include <util.h>
#include "openbsd-compat/sys-queue.h"
#include "xmalloc.h"
# include <fcntl.h>
#endif
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif /* HAVE_UTIL_H */
+#include <util.h>
#ifdef HAVE_PTY_H
# include <pty.h>
#else
# include "openbsd-compat/glob.h"
#endif
-#ifdef HAVE_UTIL_H
#include <util.h>
-#endif
#if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS)
# include <vis.h>
#endif
#include <libgen.h>
#endif
#include <limits.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
+#include <util.h>
#include <locale.h>
#include <pwd.h>
#include <signal.h>
#include <limits.h>
#include <stdarg.h>
#include <errno.h>
-#ifdef HAVE_UTIL_H
#include <util.h>
-#endif
#ifdef USE_SYSTEM_GLOB
# include <glob.h>
#else
#include <time.h>
#include <stdarg.h>
#include <unistd.h>
-#ifdef HAVE_UTIL_H
#include <util.h>
-#endif
#include "xmalloc.h"
#include "ssherr.h"
#include <string.h>
#include <unistd.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
+#include <util.h>
#include "xmalloc.h"
#include "log.h"
#include <time.h>
#include <string.h>
#include <unistd.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
+#include <util.h>
#include "xmalloc.h"
#include "ssh.h"
#include <string.h>
#include <resolv.h>
#include <time.h>
-#ifdef HAVE_UTIL_H
#include <util.h>
-#endif /* HAVE_UTIL_H */
#include "ssh2.h"
#include "ssherr.h"
#include <stdio.h>
#include <string.h>
#include <termios.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
+#include <util.h>
#include <unistd.h>
#include "sshpty.h"