Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37569930
en ru br
Репозитории ALT

Группа :: Графические оболочки/Прочее
Пакет: xautolock

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xautolock-2.2-fix-union-wait-usage.patch
Скачать


--- a/src/engine.c
+++ b/src/engine.c
@@ -210,22 +210,22 @@ evaluateTriggers (Display* d)
 #else /* VMS */
   if (lockerPid)
   {
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
+#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4) && !defined (__GLIBC__)
     union wait  status;      /* childs process status */
-#else /* !UTEKV && !SYSV && !SVR4 */
+#else /* !UTEKV && !SYSV && !SVR4 && !__GLIBC__ */
     int         status = 0;  /* childs process status */
-#endif /* !UTEKV && !SYSV && !SVR4 */
+#endif /* !UTEKV && !SYSV && !SVR4 && !__GLIBC__ */
 
     if (unlockNow && !disabled)
     {
       (void) kill (lockerPid, SIGTERM);
     }
 
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
+#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4) && !defined (__GLIBC__)
     if (wait3 (&status, WNOHANG, 0))
-#else /* !UTEKV && !SYSV && !SVR4 */
+#else /* !UTEKV && !SYSV && !SVR4 && !__GLIBC__ */
     if (waitpid (-1, &status, WNOHANG)) 
-#endif /* !UTEKV && !SYSV && !SVR4 */
+#endif /* !UTEKV && !SYSV && !SVR4 && !__GLIBC__ */
     {
      /*
       *  If the locker exited normally, we disable any pending kill
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin