Add missing includes

include/lib/util_sys.h: missing dev_t
ziomon/ziomon_msg_tools.h: missing time_t
zkey/keystore.c: missing open
mon_tools/mon_procd.c: missing gettimeofday

Fixes some build failures on musl libc

Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/193
Signed-off-by: Sertonix <sertonix@posteo.net>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Sertonix
2025-10-28 08:55:28 +01:00
committed by Jan Höppner
parent 0ea693d95c
commit 10d72caac0
5 changed files with 6 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
#include <poll.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>

View File

@@ -13,6 +13,7 @@
#define LIB_UTIL_SYS_H
#include <stdbool.h>
#include <sys/types.h>
int util_sys_get_dev_addr(const char *dev, char *addr);
bool util_sys_dev_is_partition(dev_t dev);

View File

@@ -25,7 +25,7 @@
#include <sys/statvfs.h>
#include <sys/vfs.h>
#include <syslog.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <utmp.h>

View File

@@ -12,6 +12,8 @@
#ifndef ZIOMON_MSG__TOOLS_H
#define ZIOMON_MSG__TOOLS_H
#include <time.h>
#include "ziomon_dacc.h"
void conv_blkiomon_v2_to_v3(struct message *msg);

View File

@@ -13,6 +13,7 @@
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <regex.h>
#include <stdlib.h>