This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MS_types and addr_t name polution


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).


--- Michael Eager <> 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
>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	408-328-8426	
>MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085
>Unsubscribe info:
>Bug reporting:

_____________________________________________________________ - Free UK Internet Services

Select your own custom email address for FREE! Get w/No Ads, 6MB, POP & more!

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]