This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VAX Ultrix bootstrap failure with gcc-2.96
- To: bkorb at sco dot COM (Bruce Korb)
- Subject: Re: VAX Ultrix bootstrap failure with gcc-2.96
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 5 Jun 2000 15:26:32 -0400 (EDT)
- Cc: zack at wolery dot cumb dot org, gcc-patches at gcc dot gnu dot org
> There is an autoconf test for this misfeature.
> With that test added to configure, you can simply:
>
> > +extern int getgroups(int, GETGROUPS_T *);
>
I believe that the following patch tests for the misfeature as per your
suggestion. I have checked that auto-hosts.h contains the GETGROUPS_T
define. However, I haven't tested yet whether this define gets propagated
to the fixed sys/unistd.h under Ultrix. Hopefully, it will.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* configure.in: Add AC_TYPE_GETGROUPS test.
* sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
* configure: Rebuilt.
--- configure.in.orig Mon Jun 5 14:48:37 2000
+++ configure.in Mon Jun 5 14:07:31 2000
@@ -475,6 +475,8 @@
AC_CHECK_TYPE(ssize_t, int)
+AC_TYPE_GETGROUPS
+
gcc_AC_FUNC_VFPRINTF_DOPRNT
gcc_AC_FUNC_PRINTF_PTR
--- sys-protos.h.orig Wed Dec 16 15:58:24 1998
+++ sys-protos.h Mon Jun 5 14:32:19 2000
@@ -445,7 +445,7 @@
extern struct group * getgrent(void);
extern struct group * getgrgid(gid_t);
extern struct group * getgrnam(const char *);
-extern int getgroups(int, gid_t *);
+extern int getgroups(int, GETGROUPS_T *);
extern struct hostent * gethostbyaddr(/* ??? */);
extern struct hostent * gethostbyname(/* ??? */);
extern struct hostent * gethostent(/* ??? */);