summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormayurdahibhate <mayurdahibhate31@gmail.com>2021-04-29 20:42:43 +0530
committerBenBE <BenBE@geshi.org>2021-05-10 18:40:53 +0200
commit1b74dfe1877676b914af6dcedd2d7578164aab47 (patch)
tree66ebff16204979342ba4a597c9f3c75a4cb6c005 /generic
parentd9c95369bc51595b6edd4eb6050c47a9b1e7a8d7 (diff)
cleaned up includes with iwyu
Diffstat (limited to 'generic')
-rw-r--r--generic/gettime.h1
-rw-r--r--generic/uname.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/generic/gettime.h b/generic/gettime.h
index 87dfd746..c124d035 100644
--- a/generic/gettime.h
+++ b/generic/gettime.h
@@ -9,7 +9,6 @@ in the source distribution for its full text.
#include <stdint.h>
#include <sys/time.h>
-#include <sys/types.h>
void Generic_gettime_realtime(struct timeval* tvp, uint64_t* msec);
diff --git a/generic/uname.c b/generic/uname.c
index 5058c418..b77bc8a9 100644
--- a/generic/uname.c
+++ b/generic/uname.c
@@ -6,15 +6,18 @@ in the source distribution for its full text.
*/
#include "config.h" // IWYU pragma: keep
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "Macros.h"
+#include "XUtils.h"
#include "generic/uname.h"
-#include <stdio.h>
#ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h>
#endif
-#include "XUtils.h"
-
#ifndef OSRELEASEFILE
#define OSRELEASEFILE "/etc/os-release"

© 2014-2024 Faster IT GmbH | imprint | privacy policy