Commit30e8c2a8Recorded30 Jun 2026Repositorysigil-tls

Fix musl build: include <netinet/in.h> for IPPROTO_TCP

Message

The non-Windows include block pulled in <sys/socket.h> and <netdb.h> but not <netinet/in.h>, where IPPROTOTCP is declared. Under glibc it came in transitively, so v0.16.2 compiled there, but the musl static release target failed with 'use of undeclared identifier IPPROTOTCP' at tls.c:261. Add the explicit include and bump to 0.16.3.

Changed
 native/tls.c | 1 +
 package.sgl  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Diff
native/tls.cmodified
@@ -41,6 +41,7 @@ void sigil__init_sigil_tls_module(SigilVM *vm)
41
#include <sys/types.h>
42
#include <sys/socket.h>
43
#include <sys/select.h>
+44
#include <netinet/in.h>
45
#include <netdb.h>
46
#endif
47
package.sglmodified
@@ -9,7 +9,7 @@
9
10
(package
11
name: "sigil-tls"
12
version: "0.16.2"
+12
version: "0.16.3"
13
sigil: "^0.16"
14
description: "TLS/SSL connections for Sigil"
15
url: "https://codeberg.org/sigil/sigil-tls"