+/* Author: Magnus Ivarsson <magnus.ivarsson@volvo.com> */
+
#include "netif/sio.h"
#include "netif/fifo.h"
#include "lwip/debug.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
+#include <signal.h>
#include <sys/signal.h>
#include <sys/types.h>
}
saio.sa_flags = 0;
+#if linux
saio.sa_restorer = NULL;
+#endif /* linux */
sigaction( SIGIO,&saio,NULL );
/* allow the process to receive SIGIO */
void sio_send_string( u8_t *str, sio_status_t * siostat )
{
// sio_status_t * siostat = ((siostruct_t*)netif->state)->sio;
- int len = strlen( str );
+ int len = strlen( (const char *)str );
if ( write( siostat->fd, str, len ) <= 0 )
{