diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-03-25 13:24:52 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-04-01 09:46:43 +0200 |
commit | 20136d1af7dbf1d619499cc27e1c75e05368f3b6 (patch) | |
tree | 3cbd64d2cc9c8a14e772687a43f2c25619a224a6 /src/daemon/dlt_daemon_socket.c | |
parent | 29e4f99d6db73e01e050726f1451b2d5f0281b7e (diff) | |
download | DLT-daemon-20136d1af7dbf1d619499cc27e1c75e05368f3b6.tar.gz |
Cygwin port: cygwin patch, signal handling patch and cppcheck and install lib dll to correct location on Windows. Originally from Mikko Rapeli <mikko.rapeli@bmw.de>.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/daemon/dlt_daemon_socket.c')
-rw-r--r-- | src/daemon/dlt_daemon_socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_socket.c b/src/daemon/dlt_daemon_socket.c index 12f16a8..a4dbe9f 100644 --- a/src/daemon/dlt_daemon_socket.c +++ b/src/daemon/dlt_daemon_socket.c @@ -64,10 +64,14 @@ #include <sys/ioctl.h> #include <net/if.h> +#ifdef linux #include <sys/timerfd.h> +#endif #include <sys/stat.h> #include <sys/time.h> +#ifdef linux #include <linux/stat.h> +#endif #include "dlt_types.h" #include "dlt-daemon.h" @@ -166,7 +170,7 @@ int dlt_daemon_socket_send(int sock,void* data1,int size1,void* data2,int size2, int dlt_daemon_socket_get_send_qeue_max_size(int sock) { int n = 0; - unsigned int m = sizeof(n); + socklen_t m = sizeof(n); getsockopt(sock,SOL_SOCKET,SO_SNDBUF,(void *)&n, &m); return n; |