summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0023-Fix-field-efi_loader_entry_one_shot_stat-has-incompl.patch
blob: 78660691d36177e11805a073a2020ea54b809ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From f939d3e07e1175caac5cf4cbf54bd8a58c2f198a Mon Sep 17 00:00:00 2001
From: Alex Kiernan <alex.kiernan@gmail.com>
Date: Fri, 7 Aug 2020 15:30:52 +0000
Subject: [PATCH] Fix field 'efi_loader_entry_one_shot_stat' has incomplete
 type

| In file included from ../../../../../../workspace/sources/systemd/src/login/logind-gperf.gperf:7:
| ../../../../../../workspace/sources/systemd/src/login/logind.h:131:21: error: field 'efi_loader_entry_one_shot_stat' has incomplete type
|   131 |         struct stat efi_loader_entry_one_shot_stat;
|       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Upstream-Status: Inappropriate [musl specific]
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
 src/login/logind.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/login/logind.h b/src/login/logind.h
index e64ecce8e2..2d4007d84b 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -2,6 +2,9 @@
 #pragma once
 
 #include <stdbool.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
 
 #include "sd-bus.h"
 #include "sd-device.h"