This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sys/filio.h
- From: Tom Szczesny <tavmem at hotmail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 16 Mar 2012 16:23:32 -0400
- Subject: Re: sys/filio.h
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