aboutsummaryrefslogtreecommitdiff
path: root/src/shared/misc.c
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-29 04:15:48 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2023-01-29 11:32:22 -0600
commit616f756ca82a0538cb98f8ab1e7cb0de7a09097f (patch)
tree2046a135610730917ccf00e48529600fef0a9393 /src/shared/misc.c
parent17cfb41d818ff39103f91b7f973eb749b27015e5 (diff)
shared: missing includes from IWYU
Diffstat (limited to 'src/shared/misc.c')
-rw-r--r--src/shared/misc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/shared/misc.c b/src/shared/misc.c
index a83599e5..28f95b34 100644
--- a/src/shared/misc.c
+++ b/src/shared/misc.c
@@ -15,22 +15,21 @@
* except according to the terms contained in the LICENSE file.
*/
-#include <sys/file.h>
-#include <sys/types.h>
-#include <sys/utsname.h>
-
-#ifdef __linux__
-# include <sys/sysinfo.h>
-#endif
-
-#include <sys/time.h>
#include <ctype.h>
+#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/file.h>
+#include <sys/time.h>
+#ifdef __linux__
+# include <sys/sysinfo.h>
+#endif
+#include <sys/types.h>
+#include <sys/utsname.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>
@@ -40,6 +39,7 @@
#include "rc.h"
#include "misc.h"
#include "version.h"
+#include "helpers.h"
extern char **environ;