summaryrefslogtreecommitdiff
path: root/cmd-line-utils/libedit
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay.choubey@oracle.com>2011-10-18 22:47:32 +0530
committerNirbhay Choubey <nirbhay.choubey@oracle.com>2011-10-18 22:47:32 +0530
commitfd955448c86018539e1e46a7390273dff11f0291 (patch)
treeba3c49f044dce451295e1b55a949a1f5c32ce025 /cmd-line-utils/libedit
parentd96c25a79013eae662d1c0f5f43782126b24e696 (diff)
downloadmariadb-git-fd955448c86018539e1e46a7390273dff11f0291.tar.gz
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.
Diffstat (limited to 'cmd-line-utils/libedit')
-rw-r--r--cmd-line-utils/libedit/np/strlcat.c1
-rw-r--r--cmd-line-utils/libedit/np/strlcpy.c1
-rw-r--r--cmd-line-utils/libedit/np/unvis.c1
-rw-r--r--cmd-line-utils/libedit/np/vis.c1
-rw-r--r--cmd-line-utils/libedit/np/vis.h1
5 files changed, 0 insertions, 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 <sys/cdefs.h>
#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 <sys/cdefs.h>
#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 <sys/cdefs.h>
#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 <sys/cdefs.h>
#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 <sys/cdefs.h>
/* XXXMYSQL */
#ifndef __RENAME
#define __RENAME(x)