summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatías Fonzo <selk@dragora.org>2020-01-25 18:55:58 -0300
committerSlávek Banko <slavek.banko@axis.cz>2020-01-26 18:17:44 +0100
commitf23894cb5613ef41465106a4a029f60a97df12d6 (patch)
treeb12a789486115f5fbc674a9b29551ed54b10fe44
parentdaf134576903e82b5100b2a1cc5b84f40b035741 (diff)
downloadtdebase-f23894cb5613ef41465106a4a029f60a97df12d6.tar.gz
tdebase-f23894cb5613ef41465106a4a029f60a97df12d6.zip
Added missing header in ksysguard/ksysguardd/Linux/netstat.c
Without the header, the build log: [ 96%] Building C object ksysguard/ksysguardd/Linux/CMakeFiles/ksysguardd-static.dir/netstat.c.o /usr/src/qi/build/tdebase-trinity-14.0.7/ksysguard/ksysguardd/Linux/netstat.c: In function ‘updateNetStatTcpUdpRaw’: /usr/src/qi/build/tdebase-trinity-14.0.7/ksysguard/ksysguardd/Linux/netstat.c:269:2: error: unknown type name ‘uint’; did you mean ‘int’? 269 | uint local_addr, local_port; | ^~~~ | int /usr/src/qi/build/tdebase-trinity-14.0.7/ksysguard/ksysguardd/Linux/netstat.c:270:2: error: unknown type name ‘uint’; did you mean ‘int’? 270 | uint remote_addr, remote_port; | ^~~~ | int /usr/src/qi/build/tdebase-trinity-14.0.7/ksysguard/ksysguardd/Linux/netstat.c:272:2: error: unknown type name ‘uint’; did you mean ‘int’? 272 | uint state; | ^~~~ | int make[2]: *** [ksysguard/ksysguardd/Linux/CMakeFiles/ksysguardd-static.dir/build.make:180: ksysguard/ksysguardd/Linux/CMakeFiles/ksysguardd-static.dir/netstat.c.o] Error 1 make[2]: Leaving directory '/usr/src/qi/build/tdebase-trinity-14.0.7/BUILD' make[1]: *** [CMakeFiles/Makefile2:24044: ksysguard/ksysguardd/Linux/CMakeFiles/ksysguardd-static.dir/all] Error 2 make[1]: Leaving directory '/usr/src/qi/build/tdebase-trinity-14.0.7/BUILD' make: *** [Makefile:130: all] Error 2 Signed-off-by: Matías Fonzo <selk@dragora.org> (cherry picked from commit 67fe6d2e739013d92158f2339aaa928d50c02ef7)
-rw-r--r--ksysguard/ksysguardd/Linux/netstat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ksysguard/ksysguardd/Linux/netstat.c b/ksysguard/ksysguardd/Linux/netstat.c
index c8570f617..c64b0ffd1 100644
--- a/ksysguard/ksysguardd/Linux/netstat.c
+++ b/ksysguard/ksysguardd/Linux/netstat.c
@@ -20,6 +20,8 @@
#include <config.h>
+#include <sys/types.h>
+
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>