public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gnu-libc and egcs problems on linux
@ 1997-12-03  5:46 Mike Neuhauser
  1997-12-03 10:32 ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Neuhauser @ 1997-12-03  5:46 UTC (permalink / raw)
  To: libc-hacker; +Cc: egcs

Hi!

I've came across a problem with gnu-libc (snapshot 971201 from
ftp.kernel.org) and egcs-971201 under linux (my goal is to build
a cross compiler for a linux system that will use gnu-libc as its
libc). During the build of the cross compiler the header files of
gnu-libc are needed to extract certain system specific definitions
(to generate egcs/build/<target>/libio/_G_config.h). The script doing
this (egcs-971201/libio/gen-params) needs the whole definition of
certain data-types to be on a *single* line . This is not the case for
__sigset_t defined in libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h
which causes the cross-compiler build to fail. The following simple
patch fixes the problem. (It would be much more complicated to fix
egcs-971201/libio/gen-params.)

===================Patch Begin
--- libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h-old	Wed Dec  3 10:52:13 1997
+++ libc-971201/sysdeps/unix/sysv/linux/bits/sigset.h	Wed Dec  3 10:52:31 1997
@@ -25,10 +25,7 @@
 /* A `sigset_t' has a bit for each signal.  */
 
 #define _SIGSET_NWORDS	(1024 / (8 * sizeof (unsigned long int)))
-typedef struct
-  {
-    unsigned long int __val[_SIGSET_NWORDS];
-  } __sigset_t;
+typedef struct { unsigned long int __val[_SIGSET_NWORDS]; } __sigset_t;
 
 #endif
===================Patch End

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-12-03 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-03  5:46 gnu-libc and egcs problems on linux Mike Neuhauser
1997-12-03 10:32 ` Ulrich Drepper
1997-12-03 10:32   ` Mike Neuhauser
1997-12-03 10:32     ` Ulrich Drepper
1997-12-03 10:32       ` Mike Neuhauser
1997-12-03 12:54         ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).