RISCOS changes by dschwertberger.
diff --git a/Lib/socket.py b/Lib/socket.py
index c928700..136a052 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -48,7 +48,8 @@
 del _socket
 
 if (sys.platform.lower().startswith("win")
-    or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")):
+    or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")
+    or (sys.platform=="RISCOS")):
 
     # be sure this happens only once, even in the face of reload():
     try: