asan: score: global-buffer-overflow
[deliverable/binutils-gdb.git] / sim / bfin / dv-eth_phy.c
index 56aad6f4f1ba3df89a68a2ad9712b573f42a0306..4b47836b92ccfcb59dc28c36c46c1279f221db92 100644 (file)
@@ -1,6 +1,6 @@
 /* Ethernet Physical Receiver model.
 
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2019 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.024759 seconds and 4 git commands to generate.