[Mono-bugs] [Bug 63497][Blo] New - [PATCH] closesocket aliased on redhat / debian woody

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 19 Aug 2004 15:00:45 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla@gurugeek.com.


--- shadow/63497	2004-08-19 15:00:45.000000000 -0400
+++ shadow/63497.tmp.11846	2004-08-19 15:00:45.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 63497
+Product: Mono: Runtime
+Version: unspecified
+OS Details: Linux localhost 2.4.21-4.0.1.ELsmp #1 SMP Thu Oct 23 01:27:36 EDT 2003 i686 i686 i386 GNU/Linux
+Status: NEW   
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bugzilla@gurugeek.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: [PATCH] closesocket aliased on redhat / debian woody
+Description of Problem:
+closesocket is aliased to close, refer to bug 58848 for more information.
+Steps to reproduce the problem:
+1. Try to compile on redhat 7.2 or RHEL3
+Actual Results:
+Make exits with error below.
+In file included from ../../mono/io-layer/wapi.h:27,
+                 from io.c:35:
+../../mono/io-layer/sockets.h:44: conflicting types for `close'
+/usr/include/unistd.h:305: previous declaration of `close'
+io.c:1475: warning: `convert_perms' defined but not used
+make[6]: *** [io.lo] Error 1
+Expected Results:
+Successfully completed make.
+How often does this happen?
+Every attempt.
+Additional Information:
+Sorry I don't know how to create a patch. The fix is easy though, place
+this line just above the function definition for closesocket in
+#undef closesocket