This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
FreeBSD port (47): QMAGIC
- From: Bruno Haible <bruno at clisp dot org>
- To: Roland McGrath <roland at frob dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 5 Sep 2002 14:16:38 +0200 (CEST)
- Subject: 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. */