pkgsrc/lang/jimtcl/patches/patch-jim-aio.c
jperkin 6bdc30eb44 jimtcl: Update to 0.81. Fix Darwin and SunOS.
This release contains bug fixes plus a number of additional features. A
summary is below. See git for the full changelog.

Thanks to everyone who contributed to this release.

Bugs fixed in version 0.81

 - info complete - return 0 if the script is missing an end quote
 - sqlite3 - return integers as 64 bit values, not 32 bit

Features and improvements added in version 0.81

 - New redis client extension
 - expr - TIP 582 - support comments in expressions
 - Many commands now accept “safe” integer expressions rather than simple
   integers: loop, range, incr, string repeat, lrepeat, pack, unpack, rand
 - string and list indexes now accept “safe” integer expressions
 - loop can now omit the start value
 - New xtrace command for execution trace support
 - Add history keep
 - Add support for lsearch -index and lsearch -stride, the latter per TIP 351
 - lsort -index now supports multiple indices
 - Add support for lsort -stride
 - open now supports POSIX-style access arguments
 - sdl extension now supports SDL2, and basic text support is added as well
   as polling support
 - ABI version checking is now available to allow dynamic modules to verify
   they are loaded into a compatible interpreter

Possible incompatibilities in version 0.81

 - If the --compat configure option is not set, expr now only allows a single
   argument (per TIP 526)
2021-12-07 17:51:20 +00:00

39 lines
1.3 KiB
C

$NetBSD: patch-jim-aio.c,v 1.1 2021/12/07 17:51:21 jperkin Exp $
Avoid sun define on SunOS.
--- jim-aio.c.orig 2021-11-27 23:06:54.000000000 +0000
+++ jim-aio.c
@@ -132,7 +132,7 @@ union sockaddr_any {
struct sockaddr_in6 sin6;
#endif
#if UNIX_SOCKETS
- struct sockaddr_un sun;
+ struct sockaddr_un sockun;
#endif
};
@@ -530,9 +530,9 @@ static int JimParseIpAddress(Jim_Interp
#if UNIX_SOCKETS
static int JimParseDomainAddress(Jim_Interp *interp, const char *path, union sockaddr_any *sa, socklen_t *salen)
{
- sa->sun.sun_family = PF_UNIX;
- snprintf(sa->sun.sun_path, sizeof(sa->sun.sun_path), "%s", path);
- *salen = strlen(sa->sun.sun_path) + 1 + sizeof(sa->sun.sun_family);
+ sa->sockun.sun_family = PF_UNIX;
+ snprintf(sa->sockun.sun_path, sizeof(sa->sockun.sun_path), "%s", path);
+ *salen = strlen(sa->sockun.sun_path) + 1 + sizeof(sa->sockun.sun_family);
return JIM_OK;
}
@@ -567,8 +567,8 @@ static Jim_Obj *JimFormatSocketAddress(J
switch (sa->sa.sa_family) {
#if UNIX_SOCKETS
case PF_UNIX:
- addr = sa->sun.sun_path;
- addrlen = salen - 1 - sizeof(sa->sun.sun_family);
+ addr = sa->sockun.sun_path;
+ addrlen = salen - 1 - sizeof(sa->sockun.sun_family);
if (addrlen < 0) {
addrlen = 0;
}