summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-02-21 17:01:54 +0100
committerKay Sievers <kay.sievers@suse.de>2006-02-21 17:01:54 +0100
commit559776036744f6dc4e475851ae646ee1c0c51631 (patch)
treebdfa3771e30b8d9dae20d178804dd5b77deac3e5
parent4cb665e431cfd03f000e7f025b47b24727458131 (diff)
workaround missing kernel headers for some architectures
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
-rw-r--r--udev_libc_wrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h
index a4d320fef2..fc66670a3c 100644
--- a/udev_libc_wrapper.h
+++ b/udev_libc_wrapper.h
@@ -135,8 +135,12 @@ static inline int inotify_add_watch(int fd, const char *name, uint32_t mask)
#endif
#ifndef SO_RCVBUFFORCE
+#if defined(__alpha__) || defined(__hppa__) || defined(__sparc__) || defined(__sparc_v9__)
+#define SO_RCVBUFFORCE 0x100b
+#else
#define SO_RCVBUFFORCE 33
#endif
+#endif
extern uid_t lookup_user(const char *user);
extern gid_t lookup_group(const char *group);