]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-hwdb: include sys/stat.h in hwdb-internal.h
authorNick Rosbrook <nick.rosbrook@canonical.com>
Thu, 26 May 2022 18:32:20 +0000 (14:32 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Fri, 27 May 2022 13:40:54 +0000 (09:40 -0400)
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;

src/libsystemd/sd-hwdb/hwdb-internal.h

index 5ddc2211e62c3a485278888e8d72385880da9092..62d27f7b8968d5563769cc12ac49b22cc800add4 100644 (file)
@@ -2,6 +2,7 @@
 #pragma once
 
 #include <stdint.h>
+#include <sys/stat.h>
 
 #include "def.h"
 #include "hashmap.h"