diff options
author | Olivier Blin <oblin@mandriva.com> | 2006-01-20 23:18:23 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-01-20 23:18:23 +0100 |
commit | aaa14841de57fc0d8c92514da9453c58d9ba59fe (patch) | |
tree | 054857799d0b3f4364d5838cd0b95e2d928ee333 | |
parent | 0ec819d92bd53a2f64e738c40bde39e4d2dd66be (diff) |
fixes udev build with -fpie
Add missing includes and environ declaration.
-rw-r--r-- | udev_sysfs.c | 1 | ||||
-rw-r--r-- | udev_utils_run.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/udev_sysfs.c b/udev_sysfs.c index 172f0ce1fd..d1e43a60ee 100644 --- a/udev_sysfs.c +++ b/udev_sysfs.c @@ -26,6 +26,7 @@ #include <fcntl.h> #include <ctype.h> #include <errno.h> +#include <sys/stat.h> #include "udev.h" diff --git a/udev_utils_run.c b/udev_utils_run.c index b6020b0ab6..c6af90658d 100644 --- a/udev_utils_run.c +++ b/udev_utils_run.c @@ -30,9 +30,11 @@ #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) { |