aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/mcore/ChangeLog4
-rw-r--r--sim/mcore/interp.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog
index a073107..d108974 100644
--- a/sim/mcore/ChangeLog
+++ b/sim/mcore/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-11 Chen Gang <gang.chen.5i5j@gmail.com>
+
+ * interp.c: Include "unistd.h".
+
2014-08-19 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index dfaa6aa..7e2be0d 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <sys/times.h>
#include <sys/param.h>
#include <netinet/in.h> /* for byte ordering macros */
+#include <unistd.h>
#include "bfd.h"
#include "gdb/callback.h"
#include "libiberty.h"