On Tue, Jul 2, 2013 at 9:31 PM, Olof Kindgren <[email protected]> wrote:
> On Tue, Jul 2, 2013 at 5:40 PM, Stefan Kristiansson
> <[email protected]> wrote:
>>
>> write, read, pipe et al are declared in this, newer gcc will
>> warn on missing declerations, thus making the build to fail
>> ---
>>  bench/sysc/src/GdbServerSC.cpp     | 1 +
>>  bench/sysc/src/Or1200MonitorSC.cpp | 1 +
>>  bench/sysc/src/RspConnection.cpp   | 1 +
>>  bench/sysc/src/UartSC.cpp          | 1 +
>>  4 files changed, 4 insertions(+)
>>
>> diff --git a/bench/sysc/src/GdbServerSC.cpp
>> b/bench/sysc/src/GdbServerSC.cpp
>> index 7775810..104085c 100644
>> --- a/bench/sysc/src/GdbServerSC.cpp
>> +++ b/bench/sysc/src/GdbServerSC.cpp
>> @@ -35,6 +35,7 @@
>>
>>  #include <errno.h>
>>  #include <fcntl.h>
>> +#include <unistd.h>
>>  extern int monitor_to_gdb_pipe[2][2];  // [0][] - monitor to gdb, [1][] -
>> gdb to monitor, [][0] - read, [][1] - write
>>
>>  using std::cerr;
>> diff --git a/bench/sysc/src/Or1200MonitorSC.cpp
>> b/bench/sysc/src/Or1200MonitorSC.cpp
>> index a04a996..b9e9deb 100644
>> --- a/bench/sysc/src/Or1200MonitorSC.cpp
>> +++ b/bench/sysc/src/Or1200MonitorSC.cpp
>> @@ -30,6 +30,7 @@
>>  #include <iostream>
>>  #include <iomanip>
>>  #include <fstream>
>> +#include <unistd.h>
>>  #include <sys/types.h>
>>  #include <netinet/in.h>
>>  using namespace std;
>> diff --git a/bench/sysc/src/RspConnection.cpp
>> b/bench/sysc/src/RspConnection.cpp
>> index aeb33fa..873327c 100644
>> --- a/bench/sysc/src/RspConnection.cpp
>> +++ b/bench/sysc/src/RspConnection.cpp
>> @@ -32,6 +32,7 @@
>>  #include <cerrno>
>>  #include <csignal>
>>  #include <cstring>
>> +#include <unistd.h>
>>
>>  #include <netdb.h>
>>  #include <arpa/inet.h>
>> diff --git a/bench/sysc/src/UartSC.cpp b/bench/sysc/src/UartSC.cpp
>> index 7cca82f..7f6386f 100644
>> --- a/bench/sysc/src/UartSC.cpp
>> +++ b/bench/sysc/src/UartSC.cpp
>> @@ -34,6 +34,7 @@
>>
>>  #ifdef UART_SC_STDIN_ENABLE
>>  #include <termios.h>
>> +#include <unistd.h>
>>  #endif
>>
>>  SC_HAS_PROCESS(UartSC);
>> --
>> 1.8.1.2
>>
>> _______________________________________________
>> OpenRISC mailing list
>> [email protected]
>> http://lists.openrisc.net/listinfo/openrisc
>
>
> Nothing to complain about here. Feel free to apply

What he said.

Julius
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to