This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: On NCR 4.3.03 conflict at compile time using gcc 2.95.3


Thanks Tanes for your patch and others comunity members for your help.
I'm able to compile and link my project using your patch.
It would be interresting if this patch can be include in the next gcc 
packaging like linux and Sco patch.

Regards,
Emmanuel Soden

>
>Sorry. I forgot to tell you to apply patch for this. Apparently there
>are declarations (and provided functions) of htons, htonl, ... already
>in STREAMWare TCP. That's why you got an error. Here is patch I apply on
>gcc 2.95.2 and gcc 2.95.3 on file
>/usr/local/lib/gcc-lib/i586-ncr-sysv4.3.03/2.95.3/include/sys/byteorder.h.
>
>
>Regards,
>Tanes Sriviroolchai
>NCR (Thailand) Ltd.
>
>*** byteorder.h Thu Mar 29 18:16:58 2001
>--- ../../../2.95.2/include/sys/byteorder.h     Mon Nov  8 10:14:24 1999
>***************
>*** 26,35 ****
>--- 26,37 ----
>   #endif
>
>   #ifdef __STDC__
>+ #if 0
>   static __inline__ unsigned long htonl (unsigned long);
>   static __inline__ unsigned short htons (unsigned int);
>   static __inline__ unsigned long ntohl (unsigned long);
>   static __inline__ unsigned short ntohs (unsigned int);
>+ #endif
>   #endif /* defined (__STDC__) */
>
>   #if defined (__i386__)
>***************
>*** 38,43 ****
>--- 40,46 ----
>   #define __BYTE_ORDER__ __LITTLE_ENDIAN__
>   #endif
>
>+ #if 0
>   /* Convert a host long to a network long.  */
>
>   /* We must use a new-style function definition, so that this will also
>***************
>*** 64,69 ****
>--- 67,74 ----
>     return __result;
>   }
>
>+ #endif
>+
>   #elif ((defined (__i860__) && !defined (__i860_big_endian__)) \
>          || defined (__ns32k__) || defined (__vax__)            \
>          || defined (__spur__) || defined (__arm__))
>***************
>*** 125,130 ****
>--- 130,136 ----
>
>   #endif /* big-endian */
>
>+ #if 0
>   /* Convert a network long to a host long.  */
>
>   static __inline__ unsigned long
>***************
>*** 140,144 ****
>--- 146,152 ----
>   {
>     return htons (__arg);
>   }
>+
>+ #endif
>
>   #endif /* !defined (_SYS_BYTEORDER_H) */
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]