r2107 - glibc-package/branches/glibc-branch-etch/debian/patches/any
Author: aurel32
Date: 2007-04-21 21:07:09 +0000 (Sat, 21 Apr 2007)
New Revision: 2107
Modified:
glibc-package/branches/glibc-branch-etch/debian/patches/any/submitted-gethostbyname_r.diff
Log:
glibc 2.3.6 does not have the __PTR_ALIGN macro.
Modified: glibc-package/branches/glibc-branch-etch/debian/patches/any/submitted-gethostbyname_r.diff
===================================================================
--- glibc-package/branches/glibc-branch-etch/debian/patches/any/submitted-gethostbyname_r.diff 2007-04-21 19:33:30 UTC (rev 2106)
+++ glibc-package/branches/glibc-branch-etch/debian/patches/any/submitted-gethostbyname_r.diff 2007-04-21 21:07:09 UTC (rev 2107)
@@ -24,7 +24,7 @@
int32_t ttl = 0;
+ /* Align the buffer. */
-+ host_data = (struct host_data *) __PTR_ALIGN(0, buffer, sizeof(char*) - 1);
++ host_data = (struct host_data *) (((intptr_t) buffer + (sizeof(char*) - 1)) & ~(sizeof(char*) - 1));
+ linebuflen = buflen - sizeof (struct host_data) - ((char *)host_data - buffer);
+
if (__builtin_expect (linebuflen, 0) < 0)
Reply to: