Sortix patches

This commit is contained in:
Juhani Krekelä 2021-08-28 18:43:25 +03:00
parent 4677966d3f
commit 536545d7f7
5 changed files with 18 additions and 4 deletions

View File

@ -35,8 +35,6 @@ mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

View File

@ -205,6 +205,7 @@ int bind_to_af_unix(unsigned char *name)
#endif
EINTRLOOP(rs, bind(s_unix_fd, &s_unix.s, s_unix_l));
if (rs) {
attempt_connect:
/*debug("bind: %d, %s", errno, strerror(errno));*/
if (af == PF_INET && errno == EADDRNOTAVAIL) {
/* do not try to connect if the user has not configured loopback interface */
@ -255,6 +256,7 @@ retry_unlink:
}
EINTRLOOP(rs, listen(s_unix_fd, 100));
if (rs) {
if (errno == EADDRINUSE) goto attempt_connect;
error("ERROR: listen failed: %d", errno);
close_and_fail:
EINTRLOOP(rs, close(s_unix_fd));

4
configure vendored
View File

@ -118,7 +118,7 @@ libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
mandir='${prefix}/share/man'
# Initialize some other variables.
subdirs=
@ -235,7 +235,7 @@ Directory and file names:
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--mandir=DIR man documentation in DIR [PREFIX/share/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names

View File

@ -3434,6 +3434,14 @@ int os_default_charset(void)
return 0;
}
// PATCH: Always use UTF-8 instead of language-specific terminal charsets
#elif defined(__sortix__)
int os_default_charset(void)
{
return utf8_table;
}
#elif !defined(DOS)
int os_default_charset(void)

6
tixbuildinfo Normal file
View File

@ -0,0 +1,6 @@
tix.version=1
tix.class=srctix
pkg.name=links
pkg.build-libraries=libssl libz libevent? xz?
pkg.build-system=configure
pkg.location-independent=true