From 326b77c80c86d989657786a10a002a831e505d9f Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 22 Oct 2002 06:38:44 +0000 Subject: [PATCH] Assume all sys/queue.h implementations are broken, and always use our local one (more implementations are broken than not broken). svn path=/trunk/yasm/; revision=776 --- configure.ac | 21 --------------------- libyasm/util.h | 6 +----- src/util.h | 6 +----- util.h | 6 +----- 4 files changed, 3 insertions(+), 36 deletions(-) diff --git a/configure.ac b/configure.ac index 6e8f13d9..cc495586 100644 --- a/configure.ac +++ b/configure.ac @@ -271,27 +271,6 @@ else fi AC_SUBST(ANSI_CFLAGS) -# Check for target-specific bogus sys/queue.h -AH_TEMPLATE([HAVE_BOGUS_SYS_QUEUE_H], - [Workaround for bad implementations.]) -case "$host" in -*-*-sunos4*) - AC_DEFINE([HAVE_BOGUS_SYS_QUEUE_H]) - ;; -*-sni-sysv*) - AC_DEFINE([HAVE_BOGUS_SYS_QUEUE_H]) - ;; -*-*-sco3.2v4*) - AC_DEFINE([HAVE_BOGUS_SYS_QUEUE_H]) - ;; -*-*-sco3.2v5*) - AC_DEFINE([HAVE_BOGUS_SYS_QUEUE_H]) - ;; -*-*-linux*) - AC_DEFINE([HAVE_BOGUS_SYS_QUEUE_H]) - ;; -esac - # Substitutions for libltdl AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) diff --git a/libyasm/util.h b/libyasm/util.h index 6b9286af..02349777 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -97,11 +97,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); # define toascii(c) ((c) & 0x7F) #endif -#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -# include -#else -# include "compat-queue.h" -#endif +#include "compat-queue.h" #ifdef HAVE_SYS_CDEFS_H # include diff --git a/src/util.h b/src/util.h index 6b9286af..02349777 100644 --- a/src/util.h +++ b/src/util.h @@ -97,11 +97,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); # define toascii(c) ((c) & 0x7F) #endif -#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -# include -#else -# include "compat-queue.h" -#endif +#include "compat-queue.h" #ifdef HAVE_SYS_CDEFS_H # include diff --git a/util.h b/util.h index 6b9286af..02349777 100644 --- a/util.h +++ b/util.h @@ -97,11 +97,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); # define toascii(c) ((c) & 0x7F) #endif -#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) -# include -#else -# include "compat-queue.h" -#endif +#include "compat-queue.h" #ifdef HAVE_SYS_CDEFS_H # include -- 2.40.0