Emit a warning when -z relro is unsupported
[deliverable/binutils-gdb.git] / sim / bfin / dv-eth_phy.c
index 56aad6f4f1ba3df89a68a2ad9712b573f42a0306..21160b494428e40d1be1fedd68c51c6cd5824d0d 100644 (file)
@@ -1,6 +1,6 @@
 /* Ethernet Physical Receiver model.
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2020 Free Software Foundation, Inc.
    Contributed by Analog Devices, Inc.
 
    This file is part of simulators.
 #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
This page took 0.023735 seconds and 4 git commands to generate.