summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-04-26 10:32:12 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-04-26 10:32:12 +0000
commitb02dee3274c2b9dc419934d66fa24cb3dd7550fb (patch)
tree3e9a49e63fbf0310c5f9f77a00d29a3646b35fe3 /sys-power/acpid/files
parentFix building with gcc4. Patch from halcy0n's overlay. (diff)
downloadgentoo-2-b02dee3274c2b9dc419934d66fa24cb3dd7550fb.tar.gz
gentoo-2-b02dee3274c2b9dc419934d66fa24cb3dd7550fb.tar.bz2
gentoo-2-b02dee3274c2b9dc419934d66fa24cb3dd7550fb.zip
Fix building with gcc4. Use proper compiler.
(Portage version: 2.0.51.20-r4)
Diffstat (limited to 'sys-power/acpid/files')
-rw-r--r--sys-power/acpid/files/acpid-1.0.4-gcc4.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-power/acpid/files/acpid-1.0.4-gcc4.patch b/sys-power/acpid/files/acpid-1.0.4-gcc4.patch
new file mode 100644
index 000000000000..b56901d21b11
--- /dev/null
+++ b/sys-power/acpid/files/acpid-1.0.4-gcc4.patch
@@ -0,0 +1,20 @@
+--- acpid-1.0.4/ud_socket.c 2005-04-26 10:26:29.000000000 +0000
++++ acpid-1.0.4.az/ud_socket.c 2005-04-26 10:27:09.000000000 +0000
+@@ -60,7 +60,7 @@
+ struct sockaddr_un cliaddr;
+ int len = sizeof(struct sockaddr_un);
+
+- newsock = accept(listenfd, (struct sockaddr *)&cliaddr, &len);
++ newsock = accept(listenfd, (struct sockaddr *)&cliaddr, (socklen_t *)&len);
+ if (newsock < 0) {
+ if (errno == EINTR) {
+ continue; /* signal */
+@@ -71,7 +71,7 @@
+
+ if (cred) {
+ len = sizeof(struct ucred);
+- getsockopt(newsock, SOL_SOCKET, SO_PEERCRED,cred,&len);
++ getsockopt(newsock, SOL_SOCKET, SO_PEERCRED,cred,(socklen_t *)&len);
+ }
+
+ return newsock;