* Re: sys/filio.h
@ 2012-03-16 20:23 Tom Szczesny
2012-03-16 20:42 ` sys/filio.h Christopher Faylor
2012-03-19 10:02 ` sys/filio.h Michel Bardiaux
0 siblings, 2 replies; 8+ messages in thread
From: Tom Szczesny @ 2012-03-16 20:23 UTC (permalink / raw)
To: cygwin
There are several places in the source code that have the following type of construction:
#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__)extern "C" {#include <sys/ioctl.h>}#elseextern "C" {#include <sys/filio.h>}#endif
As a temporary measure, I have added a line at the beginning of each construction, stating:#define linux
While this works as a temporary fix, I need to know the name of the variable automatically defined by Cygwin so that I can do something like:#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__) || defined(cygwin)
There is quite a long build going at the momemt, and I don't want to interrupt it to test out different possibilities.Can you either confirm that the defined variable is named "cygwin", or tell me what the actual name is?
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sys/filio.h
2012-03-16 20:23 sys/filio.h Tom Szczesny
@ 2012-03-16 20:42 ` Christopher Faylor
2012-03-19 10:02 ` sys/filio.h Michel Bardiaux
1 sibling, 0 replies; 8+ messages in thread
From: Christopher Faylor @ 2012-03-16 20:42 UTC (permalink / raw)
To: cygwin
[formatting fixed]
On Fri, Mar 16, 2012 at 04:23:32PM -0400, Tom Szczesny wrote:
>There are several places in the source code that have the following
>type of construction:
>
>#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__)
>extern "C" {
>#include <sys/ioctl.h>
>}
>#else
>extern "C" {
>#include <sys/filio.h>}
>#endif
>
>As a temporary measure, I have added a line at the beginning of each
>construction, stating:
>
>#define linux
>
>While this works as a temporary fix, I need to know the name of the
>variable automatically defined by Cygwin so that I can do something
>like:
>
>#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__) || defined(cygwin)
>
>There is quite a long build going at the momemt, and I don't want to
>interrupt it to test out different possibilities.Can you either confirm
>that the defined variable is named "cygwin", or tell me what the actual
>name is?
You don't have to interrupt a build to play with the c compiler or
grep /usr/include.
As a fish teaching exercise, try this command:
gcc -xc /dev/null -dD -E
cgf
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: sys/filio.h
2012-03-16 20:23 sys/filio.h Tom Szczesny
2012-03-16 20:42 ` sys/filio.h Christopher Faylor
@ 2012-03-19 10:02 ` Michel Bardiaux
2012-03-19 20:57 ` sys/filio.h Christopher Faylor
1 sibling, 1 reply; 8+ messages in thread
From: Michel Bardiaux @ 2012-03-19 10:02 UTC (permalink / raw)
To: cygwin
> [...] Can you either confirm that the defined variable is named
"cygwin", or tell me what the
> actual name is?
__CYGWIN__ (*2* underscores, twice)
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sys/filio.h
@ 2012-03-16 21:10 Tom Szczesny
0 siblings, 0 replies; 8+ messages in thread
From: Tom Szczesny @ 2012-03-16 21:10 UTC (permalink / raw)
To: cygwin
Thank you's to you both:
Marco: defined(__CYGWIN__)
Christopher: gcc -xc /dev/null -dD -E
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* sys/filio.h
@ 2012-03-16 17:06 Tom Szczesny
2012-03-16 17:20 ` sys/filio.h Christopher Faylor
0 siblings, 1 reply; 8+ messages in thread
From: Tom Szczesny @ 2012-03-16 17:06 UTC (permalink / raw)
To: cygwin
Hi, I am attempting to "make install" the A+ language in my Cygwin environment.
The package aplus-fsf-4.22-4.tar.gz is available at www.aplusdev.org
The configure worked fine:
CFLAGS=-O2 CXXFLAGS=-O2 ./configure --prefix=/usr/local/aplus-fsf-4.22
The "make install" failed with the following message:
AipcConnection.C:33:23: sys/filio.h: No such file or directory.
Any recommendations?
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sys/filio.h
2012-03-16 17:06 sys/filio.h Tom Szczesny
@ 2012-03-16 17:20 ` Christopher Faylor
2012-03-16 18:11 ` sys/filio.h Tom Szczesny
0 siblings, 1 reply; 8+ messages in thread
From: Christopher Faylor @ 2012-03-16 17:20 UTC (permalink / raw)
To: cygwin
On Fri, Mar 16, 2012 at 01:06:14PM -0400, Tom Szczesny wrote:
>
>Hi, I am attempting to "make install" the A+ language in my Cygwin environment.
>
>The package aplus-fsf-4.22-4.tar.gz is available at www.aplusdev.org
>
>
>
>The configure worked fine:
>
> CFLAGS=-O2 CXXFLAGS=-O2 ./configure --prefix=/usr/local/aplus-fsf-4.22
>
>
>
>The "make install" failed with the following message:
>
> AipcConnection.C:33:23: sys/filio.h: No such file or directory.
>
>
>
>Any recommendations?
Sorry, but no. On my Linux system:
% ls /usr/include/sys/filio.h
ls: cannot access /usr/include/sys/filio.h: No such file or directory
google implies that this is a Solaris header file. Since we don't
emulate Solaris, the file does not exist on Cygwin. If the package has
a way to build under Linux you should look into using that.
cgf
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-03-19 20:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 20:23 sys/filio.h Tom Szczesny
2012-03-16 20:42 ` sys/filio.h Christopher Faylor
2012-03-19 10:02 ` sys/filio.h Michel Bardiaux
2012-03-19 20:57 ` sys/filio.h Christopher Faylor
-- strict thread matches above, loose matches on Subject: below --
2012-03-16 21:10 sys/filio.h Tom Szczesny
2012-03-16 17:06 sys/filio.h Tom Szczesny
2012-03-16 17:20 ` sys/filio.h Christopher Faylor
2012-03-16 18:11 ` sys/filio.h Tom Szczesny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).