FreeBSD port (47): QMAGIC

Bruno Haible bruno@clisp.org
Thu Sep 5 05:15:00 GMT 2002


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.  */



More information about the Libc-alpha mailing list