Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libHX for openSUSE:Factory checked in at 2026-11-25 16:12:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libHX (Old) and /work/SRC/openSUSE:Factory/.libHX.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libHX" Wed Nov 25 16:12:01 2026 rev:89 rq:1400403 version:5.6 Changes: -------- --- /work/SRC/openSUSE:Factory/libHX/libHX.changes 2026-10-30 18:03:34.414344084 +0100 +++ /work/SRC/openSUSE:Factory/.libHX.new.1340718/libHX.changes 2026-11-25 16:12:33.640378425 +0100 @@ -1,0 +2,12 @@ +Tue Nov 24 20:57:42 UTC 2026 - Dirk Müller <[email protected]> + +- install a license file + +------------------------------------------------------------------- +Thu Nov 19 00:20:31 UTC 2026 - Jan Engelhardt <[email protected]> + +- Update to release 5.6 + * socket: reinstate SO_DOMAIN/SO_PROTOCOL checks for Linux + when exercising socket takeover from environment. + +------------------------------------------------------------------- Old: ---- libHX-5.5.tar.asc libHX-5.5.tar.zst New: ---- libHX-5.6.tar.asc libHX-5.6.tar.zst ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libHX.spec ++++++ --- /var/tmp/diff_new_pack.Rx8rDO/_old 2026-11-25 16:12:34.664421873 +0100 +++ /var/tmp/diff_new_pack.Rx8rDO/_new 2026-11-25 16:12:34.666421958 +0100 @@ -18,7 +18,7 @@ Name: libHX %define lname libHX43 -Version: 5.5 +Version: 5.6 Release: 0 Summary: Collection of routines for C and C++ programming License: LGPL-2.1-or-later @@ -80,6 +80,7 @@ %ldconfig_scriptlets -n %lname %files -n %lname +%license COPYING %_libdir/libHX*.so.43* %files devel ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.Rx8rDO/_old 2026-11-25 16:12:34.698423315 +0100 +++ /var/tmp/diff_new_pack.Rx8rDO/_new 2026-11-25 16:12:34.701423443 +0100 @@ -1,4 +1,4 @@ -mtime: 1793263720 -commit: d2df379367854b573652fa2ef1e9ba1a4c2288e6b5b2259f129e57146a463686 +mtime: 1795553869 +commit: ad5e4b28f42dcb5ad936d1562fa737ca746d254702586741b0e015a7a25e1899 url: https://src.opensuse.org/jengelh/libHX ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-24 21:57:49.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ libHX-5.5.tar.zst -> libHX-5.6.tar.zst ++++++ ++++ 1772 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/build-aux/ar-lib new/libHX-5.6/build-aux/ar-lib --- old/libHX-5.5/build-aux/ar-lib 2026-10-29 09:28:44.689068809 +0100 +++ new/libHX-5.6/build-aux/ar-lib 2026-11-19 01:04:17.753562743 +0100 @@ -9,7 +9,7 @@ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/build-aux/compile new/libHX-5.6/build-aux/compile --- old/libHX-5.5/build-aux/compile 2026-10-29 09:28:44.690068805 +0100 +++ new/libHX-5.6/build-aux/compile 2026-11-19 01:04:17.755562745 +0100 @@ -8,7 +8,7 @@ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/build-aux/missing new/libHX-5.6/build-aux/missing --- old/libHX-5.5/build-aux/missing 2026-10-29 09:28:44.696068782 +0100 +++ new/libHX-5.6/build-aux/missing 2026-11-19 01:04:17.760562752 +0100 @@ -10,7 +10,7 @@ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, @@ -199,7 +199,7 @@ echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" - echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "using a buggy non-GNU 'make', in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/build-aux/test-driver new/libHX-5.6/build-aux/test-driver --- old/libHX-5.5/build-aux/test-driver 2026-10-29 09:28:44.757068549 +0100 +++ new/libHX-5.6/build-aux/test-driver 2026-11-19 01:04:17.842562859 +0100 @@ -1,13 +1,13 @@ #! /bin/sh # test-driver - basic testsuite driver script. -scriptversion=2026-08-23.20; # UTC +scriptversion=2026-10-18.21; # UTC # Copyright (C) 2011-2026 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, @@ -66,6 +66,11 @@ enable_hard_errors=yes while test $# -gt 0; do case $1 in + --test-name|--log-file|--trs-file|--color-tests|--collect-skipped-logs|\ + --expect-failure|--enable-hard-errors) + test $# -ge 2 || usage_error "option '$1' requires an argument";; + esac + case $1 in --help) print_usage; exit $?;; --version) echo "test-driver (GNU Automake) $scriptversion"; exit $?;; --test-name) test_name=$2; shift;; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/config.h.in new/libHX-5.6/config.h.in --- old/libHX-5.5/config.h.in 2026-10-29 09:28:44.545744658 +0100 +++ new/libHX-5.6/config.h.in 2026-11-19 01:04:17.595812082 +0100 @@ -36,6 +36,9 @@ /* Define to 1 if you have the 'pipe' function. */ #undef HAVE_PIPE +/* Define to 1 if you have the 'pipe2' function. */ +#undef HAVE_PIPE2 + /* Define to 1 if you have the 'posix_fadvise' function. */ #undef HAVE_POSIX_FADVISE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/configure.ac new/libHX-5.6/configure.ac --- old/libHX-5.5/configure.ac 2026-10-28 15:08:09.183676040 +0100 +++ new/libHX-5.6/configure.ac 2026-11-19 01:03:50.828525319 +0100 @@ -1,4 +1,4 @@ -AC_INIT([libHX], [5.5]) +AC_INIT([libHX], [5.6]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -121,7 +121,7 @@ #include <sys/time.h> #include <time.h> ]) -AC_CHECK_FUNCS([copy_file_range fork execv execvp pipe posix_fadvise]) +AC_CHECK_FUNCS([copy_file_range fork execv execvp pipe pipe2 posix_fadvise]) AC_CHECK_FUNCS([getegid geteuid getpid getppid]) AC_CHECK_FUNCS([initgroups setgid]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/doc/changelog.rst new/libHX-5.6/doc/changelog.rst --- old/libHX-5.5/doc/changelog.rst 2026-10-29 09:28:25.921140270 +0100 +++ new/libHX-5.6/doc/changelog.rst 2026-11-19 01:03:57.013534340 +0100 @@ -1,3 +1,14 @@ +v5.6 (2026-11-19) +================= + +* socket: reinstate SO_DOMAIN/SO_PROTOCOL checks for Linux + when exercising socket takeover from environment. + (These got lost in version 5.4.) +* socket: takeover of AF_UNIX sockets on OpenBSD works now. +* build: basic support for building on POSIX systems without + a pipe2 syscall. + + v5.5 (2026-10-29) ================= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/proc.c new/libHX-5.6/src/proc.c --- old/libHX-5.5/src/proc.c 2026-10-14 21:54:55.848240505 +0200 +++ new/libHX-5.6/src/proc.c 2026-11-18 01:20:27.602570579 +0100 @@ -117,8 +117,8 @@ #endif /* HAVE_lots */ -#if defined(HAVE_FORK) && defined(HAVE_PIPE) && defined(HAVE_EXECV) && \ - defined(HAVE_EXECVP) +#if defined(HAVE_FORK) && (defined(HAVE_PIPE) || defined(HAVE_PIPE2)) && \ + defined(HAVE_EXECV) && defined(HAVE_EXECVP) #include <sys/wait.h> #include <fcntl.h> #include <stdbool.h> @@ -152,13 +152,21 @@ for (y = 0; y < 2; ++y) p[x][y] = -1; +#ifdef HAVE_PIPE2 if ((proc->p_flags & HXPROC_STDIN) && pipe2(p[0], O_CLOEXEC) < 0) return -errno; if ((proc->p_flags & HXPROC_STDOUT) && pipe2(p[1], O_CLOEXEC) < 0) return -errno; if ((proc->p_flags & HXPROC_STDERR) && pipe2(p[2], O_CLOEXEC) < 0) return -errno; - +#else + if ((proc->p_flags & HXPROC_STDIN) && pipe(p[0]) < 0) + return -errno; + if ((proc->p_flags & HXPROC_STDOUT) && pipe(p[1]) < 0) + return -errno; + if ((proc->p_flags & HXPROC_STDERR) && pipe(p[2]) < 0) + return -errno; +#endif return 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/socket.c new/libHX-5.6/src/socket.c --- old/libHX-5.5/src/socket.c 2026-08-18 10:04:57.942821681 +0200 +++ new/libHX-5.6/src/socket.c 2026-11-18 02:29:45.257388476 +0100 @@ -10,9 +10,8 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif -#define _POSIX_C_SOURCE 999900L /* cygwin-need:freeaddrinfo */ -#ifdef __OpenBSD__ -# define _BSD_SOURCE +#ifdef __CYGWIN__ +# define _GNU_SOURCE 1 /* cygwin-need:freeaddrinfo */ #endif #include <errno.h> #include <limits.h> @@ -314,70 +313,144 @@ #endif } -static int try_sk_from_env(int fd, const struct addrinfo *ai, const char *intf) +static bool sock_listening(int fd) { int value = 0; socklen_t optlen = sizeof(value); int ret = getsockopt(fd, SOL_SOCKET, SO_ACCEPTCONN, STUPIDWIN(&value), &optlen); - if (ret < 0 && errno != ENOPROTOOPT) + if (ret == 0) + return value != 0; + if (errno == ENOPROTOOPT) /* - * E.g. OpenBSD's getsockopt does not recognize this - even - * though the flag with the same name exists and is known. + * OpenBSD <7.6 for example fails getsockopt(SO_ACCEPTCONN). + * Assume socket matches (try_sk_from_env evaluates guards + * like LISTEN_TOP_FD). */ - return -1; - if (ret == 0 && value == 0) - return -1; + return true; + return false; +} + +static bool sock_get_triplet(int fd, int *domain, int *type, int *proto) +{ + socklen_t optlen; + int ret; #ifdef _WIN32 - WSAPROTOCOL_INFO protinfo; - optlen = sizeof(protinfo); - ret = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL_INFO, STUPIDWIN(&protinfo), &optlen); - if (ret < 0 || protinfo.iAddressFamily != ai->ai_family || - protinfo.iSocketType != ai->ai_socktype || - protinfo.iProtocol != ai->ai_protocol) + WSAPROTOCOL_INFO pi; + optlen = sizeof(pi); + ret = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL_INFO, STUPIDWIN(&pi), &optlen); + if (ret < 0) return -1; + *domain = pi.iAddressFamily; + *type = pi.iSocketType; + *proto = pi.iProtocol; + return true; #else - optlen = sizeof(value); + + *domain = 0; + *proto = 0; #ifdef SO_DOMAIN - ret = getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &value, &optlen); - if (ret < 0 || value != ai->ai_family) - return -1; + optlen = sizeof(*domain); + ret = getsockopt(fd, SOL_SOCKET, SO_DOMAIN, domain, &optlen); + if (ret < 0) + return false; #endif - optlen = sizeof(value); - ret = getsockopt(fd, SOL_SOCKET, SO_TYPE, &value, &optlen); - if (ret < 0 || value != ai->ai_socktype) - return -1; - optlen = sizeof(value); + optlen = sizeof(*type); + ret = getsockopt(fd, SOL_SOCKET, SO_TYPE, type, &optlen); + if (ret < 0) + return false; #ifdef SO_PROTOCOL - ret = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &value, &optlen); - if (ret < 0 || value != ai->ai_protocol) - return -1; + optlen = sizeof(proto); + ret = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, proto, &optlen); + if (ret < 0) + return false; #endif + return true; +#endif /* _WIN32 */ +} + +static bool sock_triplet_matches(int domain, int type, int proto, + const struct addrinfo *ai) +{ + if (domain > 0 && domain != ai->ai_family) + return false; + if (type != ai->ai_socktype) + return false; + /* + * In the AF_UNIX domain, operating systems are inconsistent as to what + * they use as protocol number. Linux and FreeBSD kernels normalize the + * number stored with the socket to 0, whereas OpenBSD normalizes to + * PF_UNIX. + */ + return proto == ai->ai_protocol || domain == AF_UNIX; +} + +#ifdef HAVE_SYS_UN_H +static bool sock_un_matches(int domain, const struct sockaddr_un *a, + socklen_t asize, const struct sockaddr_un *b, socklen_t bsize) +{ + if (domain != AF_UNIX || a->sun_path[0] == '\0' || + b->sun_path[0] == '\0') + /* INET sockets or Unix Abstract Addresses */ + return bsize == asize && memcmp(b, a, bsize) == 0; + /* + * Linux: shrinks sun_path and optlen to the bare minimum. + * FreeBSD, Solaris: reproduces original sockaddr_un. + * OpenBSD: expands optlen to full sockaddr_un. + */ + return strncmp(a->sun_path, b->sun_path, bsize - + offsetof(struct sockaddr_un, sun_path)) == 0; +} #endif + +static bool sock_name_matches(int fd, int domain, const struct addrinfo *ai) +{ struct sockaddr_storage addr; + socklen_t optlen = sizeof(addr); + memset(&addr, 0, sizeof(addr)); - optlen = sizeof(addr); - ret = getsockname(fd, (struct sockaddr *)&addr, &optlen); + int ret = getsockname(fd, reinterpret_cast(struct sockaddr *, &addr), &optlen); if (ret < 0) - return -1; - if (sizeof(addr) < optlen) + return false; + if (optlen > sizeof(addr)) optlen = sizeof(addr); - if (optlen != ai->ai_addrlen || memcmp(&addr, ai->ai_addr, optlen) != 0) - return -1; +#ifdef HAVE_SYS_UN_H + if (domain == AF_UNIX) + return sock_un_matches(domain, reinterpret_cast(const struct sockaddr_un *, ai->ai_addr), + ai->ai_addrlen, reinterpret_cast(const struct sockaddr_un *, &addr), optlen); +#endif + return optlen == ai->ai_addrlen && + memcmp(&addr, ai->ai_addr, optlen) == 0; +} + +static bool sock_intf_matches(int fd, const char *intf) +{ if (intf == nullptr) - return fd; + return true; #ifdef SO_BINDTODEVICE char ifname[32]; - optlen = sizeof(ifname); - ret = getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &optlen); + socklen_t optlen = sizeof(ifname); + int ret = getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &optlen); if (ret < 0) - return -1; + return false; else if (optlen < sizeof(ifname)) ifname[optlen] = '\0'; else ifname[sizeof(ifname)-1] = '\0'; - if (strcmp(intf, ifname) != 0) - return -1; + return strcmp(intf, ifname) == 0; +#else + return true; #endif +} + +static int try_sk_from_env(int fd, const struct addrinfo *ai, const char *intf) +{ + int domain = 0, type = 0, proto = 0; + if (!sock_listening(fd) || + !sock_get_triplet(fd, &domain, &type, &proto) || + !sock_triplet_matches(domain, type, proto, ai) || + !sock_name_matches(fd, domain, ai) || + !sock_intf_matches(fd, intf)) + return -1; return fd; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/tc-netio.c new/libHX-5.6/src/tc-netio.c --- old/libHX-5.5/src/tc-netio.c 2026-08-15 20:28:25.272566900 +0200 +++ new/libHX-5.6/src/tc-netio.c 2026-11-17 20:53:18.815108422 +0100 @@ -1,6 +1,8 @@ // SPDX-License-Identifier: MIT #define WIN32_LEAN_AND_MEAN 1 -#define _POSIX_C_SOURCE 999900L /* cygwin-need:freeaddrinfo */ +#ifdef __CYGWIN__ +# define _GNU_SOURCE 1 /* cygwin-need:freeaddrinfo */ +#endif #ifdef __cplusplus # include <cstdlib> # include <cstdio> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/tc-proc.c new/libHX-5.6/src/tc-proc.c --- old/libHX-5.5/src/tc-proc.c 2026-08-15 20:28:25.273566900 +0200 +++ new/libHX-5.6/src/tc-proc.c 2026-11-17 20:53:18.815108422 +0100 @@ -1,5 +1,7 @@ // SPDX-License-Identifier: MIT -#define _POSIX_C_SOURCE 999900L /* cygwin:fdopen */ +#ifdef __CYGWIN__ +# define _GNU_SOURCE 1 /* cygwin:fdopen */ +#endif #ifdef __cplusplus # include <cerrno> # include <cstdio> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/tc-socket.c new/libHX-5.6/src/tc-socket.c --- old/libHX-5.5/src/tc-socket.c 2026-09-25 16:47:01.251148059 +0200 +++ new/libHX-5.6/src/tc-socket.c 2026-11-17 20:53:18.815108422 +0100 @@ -1,5 +1,7 @@ // SPDX-License-Identifier: MIT -#define _POSIX_C_SOURCE 999900L +#ifdef __CYGWIN__ +# define _GNU_SOURCE 1 +#endif #include <errno.h> #include <stdio.h> #include <stdlib.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/tc-string.c new/libHX-5.6/src/tc-string.c --- old/libHX-5.5/src/tc-string.c 2026-08-15 20:28:25.274566900 +0200 +++ new/libHX-5.6/src/tc-string.c 2026-11-17 20:53:18.815108422 +0100 @@ -1,6 +1,8 @@ /* long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line f or testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing long line for testing */ // SPDX-License-Identifier: MIT -#define _POSIX_C_SOURCE 909900L +#ifdef __CYGWIN__ +# define _GNU_SOURCE 1 +#endif #ifndef __cplusplus # include <assert.h> # include <errno.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/libHX-5.5/src/tc-time.c new/libHX-5.6/src/tc-time.c --- old/libHX-5.5/src/tc-time.c 2026-08-15 20:28:25.274566900 +0200 +++ new/libHX-5.6/src/tc-time.c 2026-10-30 10:11:49.857559801 +0100 @@ -20,7 +20,7 @@ static const int NANOSECOND = 1000000000; static const long long NANOSECOND_LL = 1000000000; -static const unsigned int clock_id = CLOCK_THREAD_CPUTIME_ID; +static clockid_t clock_id = CLOCK_THREAD_CPUTIME_ID; static const unsigned int step = 1000; static const long step_mul = 10000000; ++++++ libHX.dsc ++++++ --- /var/tmp/diff_new_pack.Rx8rDO/_old 2026-11-25 16:12:35.037437699 +0100 +++ /var/tmp/diff_new_pack.Rx8rDO/_new 2026-11-25 16:12:35.044437996 +0100 @@ -1,7 +1,7 @@ Format: 1.0 Source: libhx Architecture: any -Version: 5.5 +Version: 5.6 DEBTRANSFORM-RELEASE: 1 Maintainer: openSUSE <[email protected]> Homepage: https://opensuse.org/
