1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00

sd-hwdb: include sys/stat.h in hwdb-internal.h

Include this header to fix errors when including hwdb-internal.h:
  ../src/libsystemd/sd-hwdb/hwdb-internal.h:16:21: error: field ‘st’ has incomplete type
     16 |         struct stat st;

(cherry picked from commit 9745b51c73)
(cherry picked from commit f00716615d)
This commit is contained in:
Nick Rosbrook 2022-05-26 14:32:20 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent fb406eac65
commit ebe423270e

View File

@ -2,6 +2,7 @@
#pragma once
#include <stdint.h>
#include <sys/stat.h>
#include "def.h"
#include "hashmap.h"