]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove #include <sys/cdefs.h>
authorJaco Kroon <jaco@uls.co.za>
Mon, 4 May 2020 08:29:44 +0000 (10:29 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 5 May 2020 14:22:51 +0000 (09:22 -0500)
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

main/ast_expr2.c
main/ast_expr2.y
main/editline/np/unvis.c
main/editline/np/vis.c
main/editline/np/vis.h
main/editline/sys.h
utils/db1-ast/include/db.h

index 4699b46cefba7246c7a098ffdb79fe4201b6ebb9..9bfd8d5d73e138df4abee07a3d828922b5c4774a 100644 (file)
@@ -93,7 +93,6 @@
 
 #include "asterisk.h"
 
-#include <sys/cdefs.h>
 #include <sys/types.h>
 #include <stdio.h>
 
index 08ed76a43885442fe2cf344890a0c34993a0653b..3cc58b29ab9e3abb61114650a489228b427621fa 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "asterisk.h"
 
-#include <sys/cdefs.h>
 #include <sys/types.h>
 #include <stdio.h>
 
index 0a26e3d63ba2c6364abf2f6508144034c8e58e0f..836252c510f81ad97ed07cb4f4dc40fb4a6f5802 100644 (file)
@@ -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";
index 264dce629f8642e5007b4535dc145814e7f15d79..065834c4d35d0ee06bc5bc020feed3222f379288 100644 (file)
@@ -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 */
index 0739c1dfad1ce67251cff01539dd47e22e584435..6c4486784503914e03ef7423c0bc9f85206ad60f 100644 (file)
@@ -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 *));
index 80feb5705f01484a02eb044633ea88d79e254a3e..bc117db9ca62d9196f904d186b001ef8c21c6061 100644 (file)
@@ -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 */
index 23b9b9575c0d512b4b5eec5b07cdd67f772864b0..30f73e2d4e0c209b9cfe7158a44a10c66d42d13c 100644 (file)
@@ -37,7 +37,6 @@
 #define        _DB_H 1
 
 #include <sys/types.h>
-#include <sys/cdefs.h>
 
 #include <limits.h>