The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Unix-domain sockets - abstract addresses
Date: Mon, 12 Aug 2002 13:57:24 +1000	[thread overview]
Message-ID: <1716.1029124644@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Sun, 11 Aug 2002 20:13:14 MST." <20020811.201314.111686100.davem@redhat.com>

On Sun, 11 Aug 2002 20:13:14 -0700 (PDT), 
"David S. Miller" <davem@redhat.com> wrote:
>   From: Keith Owens <kaos@ocs.com.au>
>   Date: Mon, 12 Aug 2002 13:20:09 +1000
>   
>   The problem here is that 'unix' is
> ...
>   a symbol that is defined by gcc.
>
>I see.  GCC really shouldn't be doing that as it pollutes the global
>namespace.  However, I see current 3.x vintage gcc is still doing it
>under Linux so there must be a reason it is kept around.

Untested, against 2.5.31.  It would be better to -Uunix globally but
one header depends on it, drivers/message/fusion/lsi/mpi_type.h.

--- 2.5.31-pristine/net/unix/Makefile.orig	Sat May 25 14:50:09 2002
+++ 2.5.31-pristine/net/unix/Makefile	Mon Aug 12 13:54:54 2002
@@ -8,5 +8,7 @@
 unix-$(CONFIG_SYSCTL)	+= sysctl_net_unix.o
 unix-objs		:= $(unix-y)
 
+EXTRA_CFLAGS		+= -Uunix	# avoid gcc namespace pollution
+
 include $(TOPDIR)/Rules.make
 


  reply	other threads:[~2002-08-12  3:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-08 16:15 Unix-domain sockets - abstract addresses Michael Procter
2002-08-08 18:36 ` kuznet
2002-08-09  0:29   ` Thunder from the hill
2002-08-09 13:52   ` Michael Procter
2002-08-09 16:15     ` kuznet
2002-08-09 22:33     ` Thunder from the hill
2002-08-10  1:05       ` David S. Miller
2002-08-10  1:35         ` Keith Owens
2002-08-10  1:41           ` David S. Miller
2002-08-10  2:19             ` Keith Owens
2002-08-10  2:15               ` David S. Miller
2002-08-10 10:59               ` Roman Zippel
2002-08-12  2:35               ` Oliver Xymoron
2002-08-12  2:59                 ` Keith Owens
2002-08-12  2:59                   ` David S. Miller
2002-08-12  3:20                     ` Keith Owens
2002-08-12  3:13                       ` David S. Miller
2002-08-12  3:57                         ` Keith Owens [this message]
2002-08-12  7:13                           ` Eric W. Biederman
2002-08-12 14:28                           ` David Woodhouse
2002-08-10  6:29         ` Thunder from the hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1716.1029124644@kao2.melbourne.sgi.com \
    --to=kaos@ocs.com.au \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox