Skip to content

Commit 96abfdf

Browse files
author
Nirbhay Choubey
committed
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.
1 parent 05a38e7 commit 96abfdf

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

cmd-line-utils/libedit/np/strlcat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "config.h"
2525
#endif
2626

27-
#include <sys/cdefs.h>
2827
#if defined(LIBC_SCCS) && !defined(lint)
2928
#endif /* LIBC_SCCS and not lint */
3029

cmd-line-utils/libedit/np/strlcpy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "config.h"
2525
#endif
2626

27-
#include <sys/cdefs.h>
2827
#if defined(LIBC_SCCS) && !defined(lint)
2928
#endif /* LIBC_SCCS and not lint */
3029

cmd-line-utils/libedit/np/unvis.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include "config.h"
3333

34-
#include <sys/cdefs.h>
3534
#if defined(LIBC_SCCS) && !defined(lint)
3635
#if 0
3736
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";

cmd-line-utils/libedit/np/vis.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757

5858
#include "config.h"
5959

60-
#include <sys/cdefs.h>
6160
#if defined(LIBC_SCCS) && !defined(lint)
6261
#endif /* LIBC_SCCS and not lint */
6362

cmd-line-utils/libedit/np/vis.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
* unvis flags
7777
*/
7878
#define UNVIS_END _VIS_END /* no more characters */
79-
#include <sys/cdefs.h>
8079
/* XXXMYSQL */
8180
#ifndef __RENAME
8281
#define __RENAME(x)

0 commit comments

Comments
 (0)