]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
run: include sys/stat.h again
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Sep 2025 16:36:58 +0000 (01:36 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Sep 2025 20:56:49 +0000 (22:56 +0200)
This partially reverts 9adb4685dffadb3991535a8d990ce35132b6d9a6.

For the case that sys/stat.h is not included indirectly by other headers.
Fixes the following error:
```
../src/run/run.c: In function 'fchown_to_capsule':
../src/run/run.c:2128:21: error: storage size of 'st' isn't known
 2128 |         struct stat st;
      |                     ^~
```

src/run/run.c

index 3c5698d9cd14683719043ddcd7b83ffeb17e90d5..9f9e56a3c19d2fbc1eb0e9af782bd3579823df89 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/resource.h>
+#include <sys/stat.h>
 #include <unistd.h>
 
 #include "sd-bus.h"