Most of this looks good, but one quick question as I get to this: I assume from the following that I can expect _LIBC to be defined iff the file is being compiled as part of glibc? I wasn't sure...
Cheers, Derek Paul Eggert wrote: >>-#ifdef _LIBC >>-# include <alloca.h> >>-# undef strdup >>-# define strdup(str) __strdup (str) >>-# define sysconf(id) __sysconf (id) >>-# define closedir(dir) __closedir (dir) >>-# define opendir(name) __opendir (name) >>-# define readdir(str) __readdir64 (str) >>-# define getpwnam_r(name, bufp, buf, len, res) \ >>- __getpwnam_r (name, bufp, buf, len, res) >>-# ifndef __stat64 >>-# define __stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf) >>-# endif >>-# define HAVE_STAT64 1 >>-#endif >> >> > >Please leave this sort of code in, so that the source code can be >identical in libc. > > > >>+#include "mempcpy.h" >>+#include "stat-macros.h" >>+#include "strdup.h" >> >> > >These includes need to be protected by #ifndef _LIBC. > > _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib