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: 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


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