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]
Other format: [Raw text]

FreeBSD port (47): QMAGIC


FreeBSD's <a.out.h> doesn't have the QMAGIC macro. (Apparently it's an early
Linux invention.) This gives a compilation error in elf/readlib.c.


2002-09-04  Bruno Haible  <bruno@clisp.org>

	* elf/readlib.c (process_file): Conditionalize check for QMAGIC.

diff -r -c3 glibc-20020828.bak/elf/readlib.c glibc-20020828/elf/readlib.c
*** glibc-20020828.bak/elf/readlib.c	Mon Aug 26 15:49:35 2002
--- glibc-20020828/elf/readlib.c	Fri Aug 30 11:04:29 2002
***************
*** 123,129 ****
    /* First check if this is an aout file.  */
    aout_header = (struct exec *) file_contents;
    if (N_MAGIC (*aout_header) == ZMAGIC
!       || N_MAGIC (*aout_header) == QMAGIC)
      {
        /* Aout files don't have a soname, just return the name
           including the major number.  */
--- 123,132 ----
    /* First check if this is an aout file.  */
    aout_header = (struct exec *) file_contents;
    if (N_MAGIC (*aout_header) == ZMAGIC
! #ifdef QMAGIC
!       || N_MAGIC (*aout_header) == QMAGIC
! #endif
!      )
      {
        /* Aout files don't have a soname, just return the name
           including the major number.  */


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