This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for sysdeps/generic/readelflib.c


sysdeps/generic/readelflib.c is included twice from
sysdeps/unix/sysv/linux/i386/readelflib.c. cpp complaints about
"check_ptr" redefined. This patch should fix it.

-- 
H.J. Lu (hjl@valinux.com)
---
2000-11-29  H.J. Lu  <hjl@gnu.org>

	* sysdeps/generic/readelflib.c (check_ptr): Undefine it first.

Index: sysdeps/generic/readelflib.c
===================================================================
RCS file: /work/cvs/gnu/glibc/sysdeps/generic/readelflib.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 readelflib.c
--- sysdeps/generic/readelflib.c	2000/06/09 18:41:19	1.1.1.2
+++ sysdeps/generic/readelflib.c	2000/11/29 18:34:44
@@ -25,6 +25,7 @@
 
 /* check_ptr checks that a pointer is in the mmaped file and doesn't
    point outside it.  */
+#undef check_ptr
 #define check_ptr(ptr)						\
 do								\
   {								\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]