summaryrefslogtreecommitdiff
path: root/linux-user/socket.h
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-10 08:24:59 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-10 08:24:59 +0000
commite32448e059adc8e6b31df483a679b399bc990e5a (patch)
treecba858e97b3d8ba420e1489642ae6255c223ce07 /linux-user/socket.h
parente9b34b3741c541aba1bb80b20755f03bdf167cd0 (diff)
downloadqemu-e32448e059adc8e6b31df483a679b399bc990e5a.tar.gz
Various linux-user structures and definitions fixes for PowerPC targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3800 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/socket.h')
-rw-r--r--linux-user/socket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/socket.h b/linux-user/socket.h
index f13ca45e3e..93d47823d8 100644
--- a/linux-user/socket.h
+++ b/linux-user/socket.h
@@ -109,12 +109,21 @@
#define TARGET_SO_LINGER 13
#define TARGET_SO_BSDCOMPAT 14
/* To add :#define TARGET_SO_REUSEPORT 15 */
+#if defined(TARGET_PPC)
+ #define TARGET_SO_RCVLOWAT 16
+ #define TARGET_SO_SNDLOWAT 17
+ #define TARGET_SO_RCVTIMEO 18
+ #define TARGET_SO_SNDTIMEO 19
+ #define TARGET_SO_PASSCRED 20
+ #define TARGET_SO_PEERCRED 21
+#else
#define TARGET_SO_PASSCRED 16
#define TARGET_SO_PEERCRED 17
#define TARGET_SO_RCVLOWAT 18
#define TARGET_SO_SNDLOWAT 19
#define TARGET_SO_RCVTIMEO 20
#define TARGET_SO_SNDTIMEO 21
+#endif
/* Security levels - as per NRL IPv6 - don't actually do anything */
#define TARGET_SO_SECURITY_AUTHENTICATION 22