<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14337">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Remove #include <sys/cdefs.h><br><br>These are not provided by standards, and as a result causes failure to<br>compile on musl.<br><br>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<br><br>Change-Id: I6a357cefd106c72cfecafd898638f6b5692c2e05<br>---<br>M main/ast_expr2.c<br>M main/ast_expr2.y<br>M main/editline/np/unvis.c<br>M main/editline/np/vis.c<br>M main/editline/np/vis.h<br>M main/editline/sys.h<br>M utils/db1-ast/include/db.h<br>7 files changed, 0 insertions(+), 11 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/ast_expr2.c b/main/ast_expr2.c</span><br><span>index 4699b46..9bfd8d5 100644</span><br><span>--- a/main/ast_expr2.c</span><br><span>+++ b/main/ast_expr2.c</span><br><span>@@ -93,7 +93,6 @@</span><br><span> </span><br><span> #include "asterisk.h"</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span> #include <sys/types.h></span><br><span> #include <stdio.h></span><br><span> </span><br><span>diff --git a/main/ast_expr2.y b/main/ast_expr2.y</span><br><span>index 08ed76a..3cc58b2 100644</span><br><span>--- a/main/ast_expr2.y</span><br><span>+++ b/main/ast_expr2.y</span><br><span>@@ -14,7 +14,6 @@</span><br><span> </span><br><span> #include "asterisk.h"</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span> #include <sys/types.h></span><br><span> #include <stdio.h></span><br><span> </span><br><span>diff --git a/main/editline/np/unvis.c b/main/editline/np/unvis.c</span><br><span>index 0a26e3d..836252c 100644</span><br><span>--- a/main/editline/np/unvis.c</span><br><span>+++ b/main/editline/np/unvis.c</span><br><span>@@ -33,7 +33,6 @@</span><br><span>  * SUCH DAMAGE.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span> #if defined(LIBC_SCCS) && !defined(lint)</span><br><span> #if 0</span><br><span> static char sccsid[] = "@(#)unvis.c  8.1 (Berkeley) 6/4/93";</span><br><span>diff --git a/main/editline/np/vis.c b/main/editline/np/vis.c</span><br><span>index 264dce6..065834c 100644</span><br><span>--- a/main/editline/np/vis.c</span><br><span>+++ b/main/editline/np/vis.c</span><br><span>@@ -34,7 +34,6 @@</span><br><span>  * SUCH DAMAGE.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span> #if defined(LIBC_SCCS) && !defined(lint)</span><br><span> __RCSID("$NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");</span><br><span> #endif /* LIBC_SCCS and not lint */</span><br><span>diff --git a/main/editline/np/vis.h b/main/editline/np/vis.h</span><br><span>index 0739c1d..6c44867 100644</span><br><span>--- a/main/editline/np/vis.h</span><br><span>+++ b/main/editline/np/vis.h</span><br><span>@@ -74,8 +74,6 @@</span><br><span>  */</span><br><span> #define UNVIS_END       1       /* no more characters */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> __BEGIN_DECLS</span><br><span> char       *vis __P((char *, int, int, int));</span><br><span> char      *svis __P((char *, int, int, int, const char *));</span><br><span>diff --git a/main/editline/sys.h b/main/editline/sys.h</span><br><span>index 80feb57..bc117db 100644</span><br><span>--- a/main/editline/sys.h</span><br><span>+++ b/main/editline/sys.h</span><br><span>@@ -128,8 +128,4 @@</span><br><span> extern char    *fgetline(FILE *, int *);</span><br><span> #endif</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#ifdef HAVE_SYS_CDEFS_H</span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> #endif /* _h_sys */</span><br><span>diff --git a/utils/db1-ast/include/db.h b/utils/db1-ast/include/db.h</span><br><span>index 23b9b95..30f73e2 100644</span><br><span>--- a/utils/db1-ast/include/db.h</span><br><span>+++ b/utils/db1-ast/include/db.h</span><br><span>@@ -37,7 +37,6 @@</span><br><span> #define  _DB_H 1</span><br><span> </span><br><span> #include <sys/types.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <sys/cdefs.h></span><br><span> </span><br><span> #include <limits.h></span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14337">change 14337</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/14337"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I6a357cefd106c72cfecafd898638f6b5692c2e05 </div>
<div style="display:none"> Gerrit-Change-Number: 14337 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>