Skip to contentSkip to conversation

Fix -Wall warnings in udev 054

PATCH Applied Tobias Klauser 2 participants 2 messages Mar 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 Fix -Wall warnings in udev 054

Hi,

The following patch fixes a warning when compiling udev with the -Wall compiler flag. unlink() is defined in unistd.h so we include it.

Thanks, Tobias

udev_db.c +1 -0
diff -urpN udev-054.orig/udev_db.c udev-054/udev_db.c
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <errno.h>
 #include <dirent.h>
+#include <unistd.h>
 
 #include "libsysfs/sysfs/libsysfs.h"
 #include "udev.h"

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 14 lines · Tobias Klauser

Hi,

The following patch fixes a warning when compiling udev with the -Wall compiler flag. unlink() is defined in unistd.h so we include it.

Thanks, Tobias

diff -urpN udev-054.orig/udev_db.c udev-054/udev_db.c

udev_db.c line 33

Quoted 4 lines
udev_db.c +1 -0
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <errno.h>
 #include <dirent.h>
+#include <unistd.h>

That was already fixed.

Thanks,
Kay

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel