<HTML><HEAD>
<META content="text/html; charset=euc-kr" http-equiv=Content-Type>
<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Dear sir,</P>
<P>I don't think redefinition warning is not necessarily. The application include both errno.h and netcommon.h may cause abnormal error handling.</P>
<P>Here is msvc10/include/errno.h.</P>
<P>/***<BR>*errno.h - system wide error numbers (set by system calls)<BR>*<BR>* Copyright (c) Microsoft Corporation. All rights reserved.<BR>*<BR>*Purpose:<BR>* This file defines the system-wide error numbers (set by<BR>* system calls). Conforms to the XENIX standard. Extended<BR>* for compatibility with Uniforum standard.<BR>* [System V]<BR>*<BR>* [Public]<BR>*<BR>****/</P>
<P>#pragma once</P>
<P>#ifndef _INC_ERRNO<BR>#define _INC_ERRNO</P>
<P>#include <crtdefs.h></P>
<P>#ifdef __cplusplus<BR>extern "C" {<BR>#endif</P>
<P>/* Declare reference to errno */</P>
<P>#ifndef _CRT_ERRNO_DEFINED<BR>#define _CRT_ERRNO_DEFINED<BR>_CRTIMP extern int * __cdecl _errno(void);<BR>#define errno (*_errno())</P>
<P>errno_t __cdecl _set_errno(_In_ int _Value);<BR>errno_t __cdecl _get_errno(_Out_ int * _Value);<BR>#endif</P>
<P>/* Error Codes */</P>
<P>#define EPERM 1<BR>#define ENOENT 2<BR>#define ESRCH 3<BR>#define EINTR 4<BR>#define EIO 5<BR>#define ENXIO 6<BR>#define E2BIG 7<BR>#define ENOEXEC 8<BR>#define EBADF 9<BR>#define ECHILD 10<BR>#define EAGAIN 11<BR>#define ENOMEM 12<BR>#define EACCES 13<BR>#define EFAULT 14<BR>#define EBUSY 16<BR>#define EEXIST 17<BR>#define EXDEV 18<BR>#define ENODEV 19<BR>#define ENOTDIR 20<BR>#define EISDIR 21<BR>#define ENFILE 23<BR>#define EMFILE 24<BR>#define ENOTTY 25<BR>#define EFBIG 27<BR>#define ENOSPC 28<BR>#define ESPIPE 29<BR>#define EROFS 30<BR>#define EMLINK 31<BR>#define EPIPE 32<BR>#define EDOM 33<BR>#define EDEADLK 36<BR>#define ENAMETOOLONG 38<BR>#define ENOLCK 39<BR>#define ENOSYS 40<BR>#define ENOTEMPTY 41</P>
<P>/* Error codes used in the Secure CRT functions */</P>
<P>#ifndef RC_INVOKED<BR>#if !defined(_SECURECRT_ERRCODE_VALUES_DEFINED)<BR>#define _SECURECRT_ERRCODE_VALUES_DEFINED<BR>#define EINVAL 22<BR>#define ERANGE 34<BR>#define EILSEQ 42<BR>#define STRUNCATE 80<BR>#endif<BR>#endif</P>
<P>/* Support EDEADLOCK for compatibility with older MS-C versions */<BR>#define EDEADLOCK EDEADLK</P>
<P>/* POSIX SUPPLEMENT */<BR>#define EADDRINUSE 100<BR>#define EADDRNOTAVAIL 101<BR>#define EAFNOSUPPORT 102<BR>#define EALREADY 103<BR>#define EBADMSG 104<BR>#define ECANCELED 105<BR>#define ECONNABORTED 106<BR>#define ECONNREFUSED 107<BR>#define ECONNRESET 108<BR>#define EDESTADDRREQ 109<BR>#define EHOSTUNREACH 110<BR>#define EIDRM 111<BR>#define EINPROGRESS 112<BR>#define EISCONN 113<BR>#define ELOOP 114<BR>#define EMSGSIZE 115<BR>#define ENETDOWN 116<BR>#define ENETRESET 117<BR>#define ENETUNREACH 118<BR>#define ENOBUFS 119<BR>#define ENODATA 120<BR>#define ENOLINK 121<BR>#define ENOMSG 122<BR>#define ENOPROTOOPT 123<BR>#define ENOSR 124<BR>#define ENOSTR 125<BR>#define ENOTCONN 126<BR>#define ENOTRECOVERABLE 127<BR>#define ENOTSOCK 128<BR>#define ENOTSUP 129<BR>#define EOPNOTSUPP 130<BR>#define EOTHER 131<BR>#define EOVERFLOW 132<BR>#define EOWNERDEAD 133<BR>#define EPROTO 134<BR>#define EPROTONOSUPPORT 135<BR>#define EPROTOTYPE 136<BR>#define ETIME 137<BR>#define ETIMEDOUT 138<BR>#define ETXTBSY 139<BR>#define EWOULDBLOCK 140</P>
<P>#ifdef __cplusplus<BR>}<BR>#endif</P>
<P>#endif /* _INC_ERRNO */<BR></P>
<P> </P>
<P> </P>
<P>------- <B>Original Message</B> -------</P>
<P><B>Sender</B> : Ross Finlayson<finlayson@live555.com></P>
<P><B>Date</B> : 2012-08-03 17:11 (GMT+09:00)</P>
<P><B>Title</B> : Re: [Live-devel] EINTR, EAGAIN, EINPROGRESS, EDOULDBLOCK Compile warning</P>
<P> </P><X-BASE href="x-msg://3367/"><X-BODY style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV>
<BLOCKQUOTE type="cite"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span>
<DIV style="LINE-HEIGHT: 1.4; MARGIN: 10px; FONT-FAMILY: Arial, arial">
<P style="MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt"><SPAN style="FONT-SIZE: 10pt">When i compile my program with live555 header files, compile warning is occurring.</SPAN></P>
<P style="MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt"><SPAN style="FONT-SIZE: 10pt">I'm developing the application in MSVC-2010, it seems to groupsock/include/netcommon.h file is comflicted with msvc2010/include/errno.h.</SPAN></P>
<P style="MARGIN-TOP: 5px; FONT-FAMILY: Arial, arial; MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt"><SPAN style="FONT-SIZE: 10pt">Your consideration in this matter will be appreciated.</SPAN></P>
<DIV><BR></DIV></DIV></SPAN></BLOCKQUOTE>A compiler warning is not necessarily a problem. (Sometimes it can just be an annoyance.)</DIV>
<DIV><BR></DIV>
<DIV>How are those four macros - EINTR, EAGAIN, EINPROGRESS, EDOULDBLOCK - defined in your "msvc2010/include/errno.h" file?</DIV><BR><BR>
<DIV apple-content-edited="true"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span>Ross Finlayson<BR>Live Networks, Inc.<BR><A href="http://www.live555.com/">http://www.live555.com/</A></SPAN></SPAN> </DIV><BR></X-BODY>
<P> </P>
<P> </P><!--SP:hh3.kim-->
<P><SPAN style="FONT-FAMILY: Lucida Console">-------------------------------------------</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">Research Enginner, Application Engineering Group,</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">Samsungtechwin R&D Center</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">±èÇöÈ£ (Hyunho Kim)</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">Office. +82-70-7147-8592</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">Mobile. +82-10-5002-7874</SPAN></P>
<P><SPAN style="FONT-FAMILY: Lucida Console">-------------------------------------------</SPAN></P><!--hh3.kim:EP--></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=e436c0564a34f00d0d1ad1ec6937dfebf33160f5053380ac6e3b6c551f0531e9661ccf4469d27f6a0f4a23e80fae9d574bea3c1765014a1208cece8541bc14eacf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>