summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-22 02:49:36 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-22 02:49:36 +0000
commit0a664ec3e1946a406991cf3dd4473de8b7139d6e (patch)
treeda2c10653ae670c6ba16d5c95e4d3561b259c64a /sys-apps/xinetd/files
parentRequires >=dev-libs/libxml2-2.6.17, see bug #86157 (diff)
downloadgentoo-2-0a664ec3e1946a406991cf3dd4473de8b7139d6e.tar.gz
gentoo-2-0a664ec3e1946a406991cf3dd4473de8b7139d6e.tar.bz2
gentoo-2-0a664ec3e1946a406991cf3dd4473de8b7139d6e.zip
add gcc-4 patch #86128 by Kristiaan Lenaerts
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-apps/xinetd/files')
-rw-r--r--sys-apps/xinetd/files/xinetd-2.3.13-gcc4.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/xinetd/files/xinetd-2.3.13-gcc4.patch b/sys-apps/xinetd/files/xinetd-2.3.13-gcc4.patch
new file mode 100644
index 000000000000..80a7bfda84a9
--- /dev/null
+++ b/sys-apps/xinetd/files/xinetd-2.3.13-gcc4.patch
@@ -0,0 +1,28 @@
+Fixes from upstream CVS for gcc-4.x.
+
+http://bugs.gentoo.org/show_bug.cgi?id=86128
+
+--- xinetd/service.c
++++ xinetd/service.c
+@@ -764,8 +764,8 @@
+ return FAILED;
+
+ if ( last == NULL ) {
+- last = SAIN( SVC_LAST_DGRAM_ADDR(sp) ) =
+- SAIN( calloc( 1, sizeof(union xsockaddr) ) );
++ last = SAIN( calloc( 1, sizeof(union xsockaddr) ) );
++ SVC_LAST_DGRAM_ADDR(sp) = (union xsockaddr *)last;
+ }
+
+ (void) time( &current_time ) ;
+@@ -791,8 +791,8 @@
+ return FAILED;
+
+ if( last == NULL ) {
+- last = SAIN6(SVC_LAST_DGRAM_ADDR(sp)) =
+- SAIN6(calloc( 1, sizeof(union xsockaddr) ) );
++ last = SAIN6(calloc( 1, sizeof(union xsockaddr) ) );
++ SVC_LAST_DGRAM_ADDR( sp ) = (union xsockaddr *)last;
+ }
+
+ (void) time( &current_time ) ;