From fd955448c86018539e1e46a7390273dff11f0291 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Tue, 18 Oct 2011 22:47:32 +0530 Subject: [PATCH] Bug#13102538 : COMPILE ERROR ON SOLARIS WHEN COMPILING WITH LIBEDIT Libedit won't build on platforms that do not provide "sys/cdefs.h". Removed the inclusion of cdefs.h from all files other that sys.h, which includes this file only when the header is found while configuring. --- cmd-line-utils/libedit/np/strlcat.c | 1 - cmd-line-utils/libedit/np/strlcpy.c | 1 - cmd-line-utils/libedit/np/unvis.c | 1 - cmd-line-utils/libedit/np/vis.c | 1 - cmd-line-utils/libedit/np/vis.h | 1 - 5 files changed, 5 deletions(-) diff --git a/cmd-line-utils/libedit/np/strlcat.c b/cmd-line-utils/libedit/np/strlcat.c index c2ecc3d9b4f..4e2897d8f35 100644 --- a/cmd-line-utils/libedit/np/strlcat.c +++ b/cmd-line-utils/libedit/np/strlcat.c @@ -24,7 +24,6 @@ #include "config.h" #endif -#include #if defined(LIBC_SCCS) && !defined(lint) #endif /* LIBC_SCCS and not lint */ diff --git a/cmd-line-utils/libedit/np/strlcpy.c b/cmd-line-utils/libedit/np/strlcpy.c index 533dbee70d4..ccbe6812dfc 100644 --- a/cmd-line-utils/libedit/np/strlcpy.c +++ b/cmd-line-utils/libedit/np/strlcpy.c @@ -24,7 +24,6 @@ #include "config.h" #endif -#include #if defined(LIBC_SCCS) && !defined(lint) #endif /* LIBC_SCCS and not lint */ diff --git a/cmd-line-utils/libedit/np/unvis.c b/cmd-line-utils/libedit/np/unvis.c index 3fc9fe1c9ed..4c523608c27 100644 --- a/cmd-line-utils/libedit/np/unvis.c +++ b/cmd-line-utils/libedit/np/unvis.c @@ -31,7 +31,6 @@ #include "config.h" -#include #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93"; diff --git a/cmd-line-utils/libedit/np/vis.c b/cmd-line-utils/libedit/np/vis.c index d18eb38e287..6c75438c352 100644 --- a/cmd-line-utils/libedit/np/vis.c +++ b/cmd-line-utils/libedit/np/vis.c @@ -57,7 +57,6 @@ #include "config.h" -#include #if defined(LIBC_SCCS) && !defined(lint) #endif /* LIBC_SCCS and not lint */ diff --git a/cmd-line-utils/libedit/np/vis.h b/cmd-line-utils/libedit/np/vis.h index 324e961cd4c..54a76e9108f 100644 --- a/cmd-line-utils/libedit/np/vis.h +++ b/cmd-line-utils/libedit/np/vis.h @@ -76,7 +76,6 @@ * unvis flags */ #define UNVIS_END _VIS_END /* no more characters */ -#include /* XXXMYSQL */ #ifndef __RENAME #define __RENAME(x)