delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/12/02:22:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Mime-Version: 1.0
Date: Wed, 11 Dec 2002 23:22:00 -0800 (PST)
From: Elfyn McBratney <elfyn-cygwin AT sickpuppy DOT co DOT uk>
To: Michael Eager <eager AT mvista DOT com>, cygwin AT cygwin DOT com
Subject: Re: MS_types and addr_t name polution
Reply-To: cygwin AT cygwin DOT com
X-Originating-Ip: [195.92.67.75]
Message-Id: <20021212072201.389F83BDA@sitemail.everyone.net>

Hi,

The addr_t type is used in memory managment (memory addresses??) in /usr/include/sys/mman.h. If you plan on using this (or is already on the code, mman.h i mean) you may have problems. What is the type of your addr_t? is it type char of * (pointer)?

If the code is open source you can just change the addr_t typedef name (in your source) to something else eg. addr2_t in all of your source files (a simple search and replace).

Elfyn
elfyn AT exposure DOT org DOT uk

--- Michael Eager <eager AT mvista DOT com> wrote:
>I'm porting a small program to Cygwin.  One of the typedefs
>in the program is for a symbol named addr_t.  Since this is
>defined in /usr/include/sys/types.h, there is a redefinition
>conflict.
>
>This (and a number of other symbols) are defined when __MS_types_
>is defined, which, in turn, is defined whenever __CYGWIN__, _WIN32
>or __MSDOS__ is defined.  
>
>I don't see any use of addr_t in /usr/include.  Is there a reason
>for defining addr_t and the other symbols?
>
>
>--
>Michael Eager     eager AT mvista DOT com	408-328-8426	
>MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/

_____________________________________________________________
www.smokeJet.com - Free UK Internet Services

_____________________________________________________________
Select your own custom email address for FREE! Get you AT yourchoice DOT com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019