Skip to contentSkip to conversation

fix udev build with -fpie

PATCH Applied Olivier Blin 2 participants 2 messages Jan 20, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix udev build with -fpie

Hi,

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

Regards

udev_sysfs.c renamed from udev_sysfs.c.includes +1 -0
@@ -26,6 +26,7 @@
 #include <fcntl.h>
 #include <ctype.h>
 #include <errno.h>
+#include <sys/stat.h>
 
 #include "udev.h"
 
udev_utils_run.c renamed from udev_utils_run.c.includes +2 -0
@@ -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)
 {
Signature · 2 lines
-- 
Olivier Blin - Mandriva
Applied
#1 lore raw
Quoted 3 lines · Olivier Blin

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

Applied, thanks!

Kay

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel