linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix udev build with -fpie
@ 2006-01-20 15:11 Olivier Blin
  2006-01-20 22:17 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Blin @ 2006-01-20 15:11 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Hi,

The following patch fixes udev build with -fpie, by adding missing
includes and environ declaration.

Regards


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix build with -fpie --]
[-- Type: text/x-patch, Size: 646 bytes --]

--- udev-081/udev_sysfs.c.includes	2006-01-16 06:16:57.000000000 +0100
+++ udev-081/udev_sysfs.c	2006-01-20 15:29:30.000000000 +0100
@@ -26,6 +26,7 @@
 #include <fcntl.h>
 #include <ctype.h>
 #include <errno.h>
+#include <sys/stat.h>
 
 #include "udev.h"
 
--- udev-081/udev_utils_run.c.includes	2006-01-16 06:16:57.000000000 +0100
+++ udev-081/udev_utils_run.c	2006-01-20 15:38:09.000000000 +0100
@@ -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)
 {

[-- Attachment #3: Type: text/plain, Size: 29 bytes --]


-- 
Olivier Blin - Mandriva

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-20 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 15:11 [PATCH] fix udev build with -fpie Olivier Blin
2006-01-20 22:17 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).