squid 1.1beta2 gcc conflicts

From: <carson@dont-contact.us>
Date: Wed, 18 Sep 1996 14:40:50 -0400

squid 1.1beta2 cannot be compiled with gcc under solaris 2.5 due to a
macro naming conflict.

/usr/include/sys/signal.h (or, rather, the gcc version thereof), uses
_STRICT_ANSI_ to toggle some header definitions. If it is defined,
struct sigaction is never declared, and src/tools.c won't compile.

Unfortunately, squid is trying to use _STRICT_ANSI_ for it's own
purposes, and is defining it if _STDC_ is defined. Why? Why not just
check for _STDC_? At the very least we'll have to change the macro
name to something else. I'm about to do a massive sed changing it to
_SQUID_STRICT_ANSI_ to ensure no furthur namespace collisions occur.

Carson Gaspar -- carson@cs.columbia.edu carson@lehman.com
<This is the boring business .sig - no outre sayings here>
Received on Wed Sep 18 1996 - 14:16:01 MDT

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