Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37533697
en ru br
ALT Linux repositórios
S:1.4-alt3

Group :: Sistema/Bibliotecas
RPM: libexplain

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libexplain-1.4-syscall.patch
Download


--- a/explain/syscall/ustat.c
+++ b/explain/syscall/ustat.c
@@ -30,7 +30,7 @@
 #include <explain/syscall/ustat.h>
 
 
-#ifndef HAVE_USTAT
+#if !defined(HAVE_USTAT_H) && !defined(LINUX_TYPES_H_STRUCT_USTAT)
 
 struct ustat
 {
--- a/libexplain/buffer/enfile.c
+++ b/libexplain/buffer/enfile.c
@@ -38,7 +38,7 @@ get_maxfile(void)
 {
     if (explain_option_dialect_specific())
     {
-#ifdef __linux__
+#ifdef SYS__sysctl
         /*
          * In the linux kernel, if get_empty_filp() returns NULL, the open
          * system call (and others) will return ENFILE.
--- a/libexplain/buffer/errno/listen.c
+++ b/libexplain/buffer/errno/listen.c
@@ -72,7 +72,7 @@ append_getsockname(explain_string_buffer_t *sb, int fildes)
 static int
 get_somaxconn(void)
 {
-#ifdef __linux__
+#ifdef SYS__sysctl
     struct __sysctl_args args;
     long somaxconn;
     size_t somaxconn_size = sizeof(somaxconn);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009