This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: On NCR 4.3.03 conflict at compile time using gcc 2.95.3
- To: Brother Tuck <brothertuck72 at hotmail dot com>, jbuck at racerx dot synopsys dot com, gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Subject: Re: On NCR 4.3.03 conflict at compile time using gcc 2.95.3
- From: Tanes Sriviroolchai <tanes73 at yahoo dot com>
- Date: Thu, 5 Apr 2001 01:58:21 -0700 (PDT)
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/