]> granicus.if.org Git - yasm/commitdiff
Assume all sys/queue.h implementations are broken, and always use our local
authorPeter Johnson <peter@tortall.net>
Tue, 22 Oct 2002 06:38:44 +0000 (06:38 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 22 Oct 2002 06:38:44 +0000 (06:38 -0000)
one (more implementations are broken than not broken).

svn path=/trunk/yasm/; revision=776

configure.ac
libyasm/util.h
src/util.h
util.h

index 6e8f13d901f11ad8c41867a889b563b58c884e72..cc4955869fb0b7d035d10f41176932cef78dbb34 100644 (file)
@@ -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 <sys/queue.h> 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)
index 6b9286afb389e3f06d43bca58b89ddb9e85cce3c..0234977767a5be45bdd90cf93e6318f49b60edb6 100644 (file)
@@ -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 <sys/queue.h>
-#else
-# include "compat-queue.h"
-#endif
+#include "compat-queue.h"
 
 #ifdef HAVE_SYS_CDEFS_H
 # include <sys/cdefs.h>
index 6b9286afb389e3f06d43bca58b89ddb9e85cce3c..0234977767a5be45bdd90cf93e6318f49b60edb6 100644 (file)
@@ -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 <sys/queue.h>
-#else
-# include "compat-queue.h"
-#endif
+#include "compat-queue.h"
 
 #ifdef HAVE_SYS_CDEFS_H
 # include <sys/cdefs.h>
diff --git a/util.h b/util.h
index 6b9286afb389e3f06d43bca58b89ddb9e85cce3c..0234977767a5be45bdd90cf93e6318f49b60edb6 100644 (file)
--- 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 <sys/queue.h>
-#else
-# include "compat-queue.h"
-#endif
+#include "compat-queue.h"
 
 #ifdef HAVE_SYS_CDEFS_H
 # include <sys/cdefs.h>