Remove #include <sys/cdefs.h>

These are not provided by standards, and as a result causes failure to
compile on musl.

https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E

Change-Id: I6a357cefd106c72cfecafd898638f6b5692c2e05
13.34
Jaco Kroon 5 years ago committed by Friendly Automation
parent 2d1713395b
commit f5a1a91b03

@ -93,7 +93,6 @@
#include "asterisk.h"
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdio.h>

@ -14,7 +14,6 @@
#include "asterisk.h"
#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdio.h>

@ -33,7 +33,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";

@ -34,7 +34,6 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");
#endif /* LIBC_SCCS and not lint */

@ -74,8 +74,6 @@
*/
#define UNVIS_END 1 /* no more characters */
#include <sys/cdefs.h>
__BEGIN_DECLS
char *vis __P((char *, int, int, int));
char *svis __P((char *, int, int, int, const char *));

@ -128,8 +128,4 @@ extern ptr_t memset(ptr_t, int, size_t);
extern char *fgetline(FILE *, int *);
#endif
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
#endif /* _h_sys */

@ -37,7 +37,6 @@
#define _DB_H 1
#include <sys/types.h>
#include <sys/cdefs.h>
#include <limits.h>

Loading…
Cancel
Save