All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olivier Blin <oblin@mandriva.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] fix udev build with -fpie
Date: Fri, 20 Jan 2006 15:11:14 +0000	[thread overview]
Message-ID: <m3irsf3pf1.fsf@dynamo.mandriva.com> (raw)

[-- 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

             reply	other threads:[~2006-01-20 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-20 15:11 Olivier Blin [this message]
2006-01-20 22:17 ` [PATCH] fix udev build with -fpie Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3irsf3pf1.fsf@dynamo.mandriva.com \
    --to=oblin@mandriva.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.