diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-06-27 16:20:47 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-06-27 16:20:47 +0000 |
commit | 0d72f628a4f21a869cb0dba9bbf45be1b17e625d (patch) | |
tree | d89514234626fcbffa26732a65a9f1ddd47c0a1e /libmudflap/mf-hooks2.c | |
parent | bebd619ecc3ce2fc8e82efc2830cf9de5c9d2cdd (diff) | |
download | gcc-0d72f628a4f21a869cb0dba9bbf45be1b17e625d.zip gcc-0d72f628a4f21a869cb0dba9bbf45be1b17e625d.tar.gz gcc-0d72f628a4f21a869cb0dba9bbf45be1b17e625d.tar.bz2 |
re PR libmudflap/38738 (libmudflap could be enabled for Solaris when using GNU ld)
gcc:
PR libmudflap/38738
* config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
libmudflap:
PR libmudflap/38738
* configure.ac: Check for sys/mnttab.h.
Check for library containing connect.
* configure: Regenerate.
* config.h.in: Regenerate.
* mf-hooks2.c [HAVE_SYS_MNTTAB_H]: Include <sys/mnttab.h>.
* testsuite/libmudflap.c/pass-stratcliff.c (main) [__sun__ &&
__svr4__]: Disable rawmemchr, stpcpy, mempcpy tests.
From-SVN: r175537
Diffstat (limited to 'libmudflap/mf-hooks2.c')
-rw-r--r-- | libmudflap/mf-hooks2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c index 5649e1c..77d5813 100644 --- a/libmudflap/mf-hooks2.c +++ b/libmudflap/mf-hooks2.c @@ -1,5 +1,5 @@ /* Mudflap: narrow-pointer bounds-checking by tree rewriting. - Copyright (C) 2002, 2003, 2004, 2009 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2009, 2011 Free Software Foundation, Inc. Contributed by Frank Ch. Eigler <fche@redhat.com> and Graydon Hoare <graydon@redhat.com> @@ -90,6 +90,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifdef HAVE_MNTENT_H #include <mntent.h> #endif +#ifdef HAVE_SYS_MNTTAB_H +#include <sys/mnttab.h> +#endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif @@ -2063,6 +2066,7 @@ WRAPPER2(const char *, gai_strerror, int errcode) #ifdef HAVE_GETMNTENT +#ifdef HAVE_MNTENT_H WRAPPER2(struct mntent *, getmntent, FILE *filep) { struct mntent *m; @@ -2097,6 +2101,9 @@ WRAPPER2(struct mntent *, getmntent, FILE *filep) return m; } +#elif defined HAVE_SYS_MNTTAB_H +/* FIXME: Implement. */ +#endif #endif |