diff -uprk.orig powermgmt-base-1.20/src.orig/acpi_available.c powermgmt-base-1.20/src/acpi_available.c --- powermgmt-base-1.20/src.orig/acpi_available.c 2002-05-05 05:37:25 +0400 +++ powermgmt-base-1.20/src/acpi_available.c 2004-04-19 18:10:30 +0400 @@ -1,5 +1,5 @@ /* -Copyright (c) 2002 J. D. Thomas Hood +Copyright (c) 2004 Dmitry V. Levin 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 @@ -16,21 +16,10 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include -#define ACPI_PROC "/proc/acpi" - int -main (int argc, const char * argv[]) +main (void) { - int r; - - r = access(ACPI_PROC, X_OK); - if (r==0) - exit(0); - - /* Should try to get the acpi modules loaded here */ - - exit(1); + return chdir ("/proc/acpi") < 0; } diff -uprk.orig powermgmt-base-1.20/src.orig/apm_available.c powermgmt-base-1.20/src/apm_available.c --- powermgmt-base-1.20/src.orig/apm_available.c 2002-05-05 05:37:25 +0400 +++ powermgmt-base-1.20/src/apm_available.c 2004-04-19 18:11:27 +0400 @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit 02111-1307, USA. */ #include +#include #include #include