summaryrefslogtreecommitdiff
path: root/udev_libc_wrapper.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-15 11:57:04 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-15 11:57:04 +0200
commit40caaeec51f5d8f65245932a85396ac85265cbe5 (patch)
tree4709e15ed4451931e8093de6bff0075ab606325b /udev_libc_wrapper.h
parent8aafc06d943e98dfa4ff8410eb85686e49feccbf (diff)
cleanup some debug output and move to info level + unify select() loops
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_libc_wrapper.h')
-rw-r--r--udev_libc_wrapper.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h
index a12af64c24..9dd22175cd 100644
--- a/udev_libc_wrapper.h
+++ b/udev_libc_wrapper.h
@@ -22,6 +22,11 @@
#ifndef _UDEV_LIBC_WRAPPER_H_
#define _UDEV_LIBC_WRAPPER_H_
+#include <string.h>
+#include <unistd.h>
+#include <linux/types.h>
+
+/* needed for our signal handlers to work */
#undef asmlinkage
#ifdef __i386__
#define asmlinkage __attribute__((regparm(0)))
@@ -29,6 +34,7 @@
#define asmlinkage
#endif
+/* headers are broken on some lazy platforms */
#ifndef __FD_SET
#define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
#endif
@@ -42,12 +48,11 @@
#define __FD_ZERO(set) ((void) memset ((void*) (set), 0, sizeof (fd_set)))
#endif
+/* missing in some lazy distros */
#ifndef NETLINK_KOBJECT_UEVENT
#define NETLINK_KOBJECT_UEVENT 15
#endif
-#include <string.h>
-
#ifdef __KLIBC__
static inline int clearenv(void)
{