1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/os-specific/linux/pwdutils/sys-stat-h.patch
Ludovic Courtès fff97995f3 pwdutils: Fix compilation with recent glibc.
svn path=/nixpkgs/trunk/; revision=21318
2010-04-26 09:30:53 +00:00

38 lines
983 B
Diff

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>