This is the mail archive of the cygwin 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: Attempt to build aplus-fsf-â4.22 (EnumTableâ )


Hi Tom,

On Mon, Mar 19, 2012 at 1:29 AM, Tom Szczesny  wrote:
> In Gentoo Linux:
>
> aplus-fsf-4.22/src/cxsys/eponymous.c ? ? ?contains ? ? ? ? ? #include
> <sys/ioctl.h>
> sys/ioctl.h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?contains
> ? ? ? ? #include <bits/ioctls.h>
> bits/ioctls.h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?contains
> ? ? ? ? #include <asm/ioctls.h>
> asm/ioctls.h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? contains
> ? ? ? #include <asm-generic/ioctls.h>
> asm-generic/ioctls.h ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?has the
> difinitions that are required.

Which definitions are required?

>
> Since I can't change cygwin, my plan is to put a copy of
> asm-generic/ioclts.h into the aplus source package.

That's a bad idea. Those values are Linux-specific. Your program might
compile, but is bound to fail at run time.
If an ioctl macro is not defined on Cygwin, it's because the
functionality is not implemented. In this case, sending a random
number to the ioctl function is not going to magically make it work.

asm-generic/ioctls.h contains #include <linux/ioctl.h>
Do you think that would work?

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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