aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit.c
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2021-08-18 12:34:16 +0300
committerGitHub <noreply@github.com>2021-08-18 11:34:16 +0200
commit8d0c7b1faeed1e3df6e6f90658559f373bbf63fb (patch)
tree8ef500067f538f23652986c7b844f299a0e92ef3 /tests/unit/unit.c
parent677b513f70ade895ef28be744245803238100489 (diff)
Fixed Mingw64 build, SonerCloud-CI and more. (#1273)
* Added ARM build and unit test run for SonarCloud-CI. Signed-off-by: Toni Uhlig <matzeton@googlemail.com> * Fixed Mingw64 build. * adapted to SonarCloud-CI workflow * removed broken and incomplete Windows example (tested on VS2017/VS2019) * removed unnecessary include (e.g. pthread.h for the library which does not make use of it) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'tests/unit/unit.c')
-rw-r--r--tests/unit/unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit.c b/tests/unit/unit.c
index 2842638c2..d17ab3e89 100644
--- a/tests/unit/unit.c
+++ b/tests/unit/unit.c
@@ -33,6 +33,8 @@
#else
#include <unistd.h>
#include <netinet/in.h>
+#include <sys/socket.h>
+#include <sys/mman.h>
#endif
#include <stdio.h>
@@ -44,12 +46,10 @@
#include <pcap.h>
#include <signal.h>
#include <pthread.h>
-#include <sys/socket.h>
#include <assert.h>
#include <math.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/mman.h>
#include <libgen.h>
#include "ndpi_config.h"