HEAD compile error on Alpha Linux and Compaq C Compiler - SOLVED - [PATCH]

From: Guido Serassio <serassio@dont-contact.us>
Date: Fri, 28 Dec 2001 17:57:50 +0100

Hi,

I just found a minor issue on HEAD:

On my Alpha running RHL 7.0, I can't compile HEAD using the ccc Compaq C
Compiler for Linux.

Compaq C Compiler for Alpha Linux (ccc) use gcc libraries and include files.
It seem's that it doesn't like byteswap.h included in ntlmauth.h

Applying the following patch, all compiles and seems to work fine.

Index: include/ntlmauth.h
===================================================================
RCS file: /cvsroot/squid/squid/include/ntlmauth.h,v
retrieving revision 1.9
diff -u -p -r1.9 ntlmauth.h
--- include/ntlmauth.h 2001/11/13 22:19:32 1.9
+++ include/ntlmauth.h 2001/12/28 16:53:53
@@ -65,7 +65,7 @@
  #define WSWAP(x) (x)
  #endif

-#ifdef HAVE_BYTESWAP_H
+#if defined HAVE_BYTESWAP_H && !(defined(__DECC) && defined(__linux__) &&
defined(__alpha__))
  #include <byteswap.h>
  #define bswap16(x) bswap_16(x)
  #define bswap32(x) bswap_32(x)

If this is OK, can anybody merge it in HEAD ?

Guido

-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: serassio@interfree.it
         serassio@libero.it
WWW: http://www.serassio.it
Received on Fri Dec 28 2001 - 09:57:59 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:42 MST