As discussed on the list.
+++ /dev/null
---- acpid-1.0.4/ud_socket.c
-+++ acpid-1.0.4/ud_socket.c
-@@ -58,7 +58,7 @@ ud_accept(int listenfd, struct ucred *cr
- while (1) {
- int newsock = 0;
- struct sockaddr_un cliaddr;
-- int len = sizeof(struct sockaddr_un);
-+ socklen_t len = sizeof(struct sockaddr_un);
-
- newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
- if (newsock < 0) {
+++ /dev/null
---- acpid-1.0.4/acpid.h
-+++ acpid-1.0.4/acpid.h
-@@ -32,7 +32,7 @@
- #define ACPI_EVENTFILE ACPI_PROCDIR "/event"
- #define ACPI_CONFDIR "/etc/acpi/events"
- #define ACPI_LOGFILE "/var/log/acpid"
--#define ACPI_SOCKETFILE "/var/run/acpid.socket"
-+#define ACPI_SOCKETFILE "/tmp/acpid.socket"
- #define ACPI_SOCKETMODE 0666
- #define ACPI_MAX_ERRS 5
-