summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pwdutils/sys-stat-h.patch
blob: 5b5bc8440d552ce5c3801978b8de19025755808a (plain) (blame)
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
32
33
34
35
36
37
Fix builds with current glibc git, which appears to be stricter
about <sys/stat.h>.

--- pwdutils-3.2.6/src/useradd.c~	2008-10-16 13:46:07.000000000 +0200
+++ pwdutils-3.2.6/src/useradd.c	2010-04-26 11:24:43.000000000 +0200
@@ -18,6 +18,7 @@
 #include "config.h"
 #endif
 
+#include <sys/stat.h>
 #include <time.h>
 #include <utmp.h>
 #include <fcntl.h>

--- pwdutils-3.2.6/src/userdel.c~	2006-11-29 14:20:39.000000000 +0100
+++ pwdutils-3.2.6/src/userdel.c	2010-04-26 11:26:08.000000000 +0200
@@ -18,6 +18,7 @@
 #include "config.h"
 #endif
 
+#include <sys/stat.h>
 #include <time.h>
 #include <utmp.h>
 #include <fcntl.h>

diff -ubB --show-c-function pwdutils-3.2.6/src/usermod.c\~ pwdutils-3.2.6/src/usermod.c
--- pwdutils-3.2.6/src/usermod.c~	2006-11-29 14:20:41.000000000 +0100
+++ pwdutils-3.2.6/src/usermod.c	2010-04-26 11:27:41.000000000 +0200
@@ -18,6 +18,7 @@
 #include "config.h"
 #endif
 
+#include <sys/stat.h>
 #include <time.h>
 #include <utmp.h>
 #include <fcntl.h>