From: Mike Frysinger <vapier@gentoo.org>
To: gdb@sourceware.org
Cc: Ralf Corsepius <ralf.corsepius@rtems.org>
Subject: Re: gdb-7.4 bfin simulator fails to build on Fedora 17
Date: Sun, 04 Mar 2012 19:57:00 -0000 [thread overview]
Message-ID: <201203041457.02830.vapier@gentoo.org> (raw)
In-Reply-To: <201201250145.07801.vapier@gentoo.org>
[-- Attachment #1: Type: Text/Plain, Size: 1200 bytes --]
i've committed this. i'll worry about old systems when someone
complains again.
-mike
2012-02-04 Mike Frysinger <vapier@gentoo.org>
* config.in: Regenerate.
* configure: Likewise.
* configure.ac: Add linux/types.h to AC_CHECK_HEADERS.
* dv-eth_phy.c: Check for HAVE_LINUX_TYPES_H, and delete __u16 and
_LINUX_TYPES_H defines.
--- a/sim/bfin/configure.ac
+++ b/sim/bfin/configure.ac
@@ -54,7 +54,14 @@ SIM_AC_OPTION_HARDWARE(yes,,\
)
AC_CHECK_FUNCS([getuid getgid geteuid getegid setuid setgid mmap munmap kill pread])
-AC_CHECK_HEADERS([sys/ioctl.h sys/mman.h net/if.h linux/if_tun.h linux/mii.h])
+AC_CHECK_HEADERS([ \
+ linux/if_tun.h \
+ linux/mii.h \
+ linux/types.h \
+ net/if.h \
+ sys/ioctl.h \
+ sys/mman.h \
+])
BFIN_SIM_EXTRA_OBJS=
--- a/sim/bfin/dv-eth_phy.c
+++ b/sim/bfin/dv-eth_phy.c
@@ -23,11 +23,10 @@
#include "sim-main.h"
#include "devices.h"
-#ifdef HAVE_LINUX_MII_H
+#if defined (HAVE_LINUX_MII_H) && defined (HAVE_LINUX_TYPES_H)
/* Workaround old/broken linux headers. */
-#define _LINUX_TYPES_H
-#define __u16 unsigned short
+#include <linux/types.h>
#include <linux/mii.h>
#define REG_PHY_SIZE 0x20
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-03-04 19:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-24 17:58 Ralf Corsepius
2012-01-24 20:59 ` Mike Frysinger
2012-01-25 6:18 ` Ralf Corsepius
2012-01-25 6:44 ` Mike Frysinger
2012-03-04 19:57 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203041457.02830.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb@sourceware.org \
--cc=ralf.corsepius@rtems.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox