summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);