summaryrefslogtreecommitdiff
path: root/udev_libc_wrapper.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-10 00:58:01 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:51:00 -0700
commit138068d690d79e71239d3e776f01560afbabc1cb (patch)
treed390cc993fabdb7a2c8657e88e47823ddf0805d8 /udev_libc_wrapper.h
parent2b40452ab3146322a88ae201a2eb534204c75d63 (diff)
[PATCH] fix ia64 compile
Diffstat (limited to 'udev_libc_wrapper.h')
-rw-r--r--udev_libc_wrapper.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h
index 65f4e01c23..4d6d332c69 100644
--- a/udev_libc_wrapper.h
+++ b/udev_libc_wrapper.h
@@ -22,14 +22,24 @@
#ifndef _UDEV_LIBC_WRAPPER_H_
#define _UDEV_LIBC_WRAPPER_H_
-#ifdef asmlinkage
-# undef asmlinkage
-#endif
+#undef asmlinkage
#ifdef __i386__
-# define asmlinkage __attribute__((regparm(0)))
+#define asmlinkage __attribute__((regparm(0)))
+#else
+#define asmlinkage
+#endif
+
+#ifndef __FD_SET
+#define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
+#endif
+#ifndef __FD_CLR
+#define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
+#endif
+#ifndef __FD_ISSET
+#define __FD_ISSET(d, set) (((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) != 0)
#endif
-#ifndef asmlinkage
-# define asmlinkage
+#ifndef __FD_ZERO
+#define __FD_ZERO(set) ((void) memset ((void*) (set), 0, sizeof (fd_set)))
#endif
#include <string.h>