summaryrefslogtreecommitdiffstats
path: root/package/acpid/acpid-sign-warning.patch
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-29 08:42:37 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-29 08:42:37 +0000
commit8bdb7bd3aadff4b68ad59bb482411ad88a72af64 (patch)
tree7392dea4c8ba09d90487e93df083d76b238ad8fd /package/acpid/acpid-sign-warning.patch
parentc33db03a191aa2d211d12a9fa0f8239de50efb68 (diff)
downloadbuildroot-novena-8bdb7bd3aadff4b68ad59bb482411ad88a72af64.tar.gz
buildroot-novena-8bdb7bd3aadff4b68ad59bb482411ad88a72af64.zip
- acpid is compiled with -Werror, and gcc 4.1.1 warns about mismatching
pointers. Fix it by using socklen_t type. - Modify acpid.mk to apply all available patches. Convert ACPI_SOCKETFILE adjustment from sed script to a patch. Thanks to Pavel Roskin
Diffstat (limited to 'package/acpid/acpid-sign-warning.patch')
-rw-r--r--package/acpid/acpid-sign-warning.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/acpid/acpid-sign-warning.patch b/package/acpid/acpid-sign-warning.patch
new file mode 100644
index 000000000..ec66ace0d
--- /dev/null
+++ b/package/acpid/acpid-sign-warning.patch
@@ -0,0 +1,11 @@
+--- 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) {