chiark / gitweb /
fixes udev build with -fpie
authorOlivier Blin <oblin@mandriva.com>
Fri, 20 Jan 2006 22:18:23 +0000 (23:18 +0100)
committerKay Sievers <kay.sievers@suse.de>
Fri, 20 Jan 2006 22:18:23 +0000 (23:18 +0100)
Add missing includes and environ declaration.

udev_sysfs.c
udev_utils_run.c

index 172f0ce1fdd4b3e95999c4f9f5c1ee0043c9bdd4..d1e43a60eec8721422b393dff9d48cdae1ff5eb1 100644 (file)
@@ -26,6 +26,7 @@
 #include <fcntl.h>
 #include <ctype.h>
 #include <errno.h>
+#include <sys/stat.h>
 
 #include "udev.h"
 
index b6020b0ab6baea9f1f0d22e24385c3d213aad13f..c6af90658de14794bfb91acdee74a010422e8ca0 100644 (file)
 #include <sys/un.h>
 #include <sys/wait.h>
 #include <sys/select.h>
+#include <unistd.h>
 
 #include "udev.h"
 
+extern char **environ;
 
 int pass_env_to_socket(const char *sockname, const char *devpath, const char *action)
 {