diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-18 03:00:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-18 03:00:26 +0000 |
commit | 0580aad17f754a1438772dc2db396f4401d874be (patch) | |
tree | 37d1b058ba03dd2801bdd3b815048d35fb9bcf94 /nuttx/arch/sim/src/up_devconsole.c | |
parent | 9e15c4be04516ac9957f33ea179a188cc2a081a0 (diff) | |
download | px4-nuttx-0580aad17f754a1438772dc2db396f4401d874be.tar.gz px4-nuttx-0580aad17f754a1438772dc2db396f4401d874be.tar.bz2 px4-nuttx-0580aad17f754a1438772dc2db396f4401d874be.zip |
Fixed for CYGWIN build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@346 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim/src/up_devconsole.c')
-rw-r--r-- | nuttx/arch/sim/src/up_devconsole.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/sim/src/up_devconsole.c b/nuttx/arch/sim/src/up_devconsole.c index 31c4e46c6..1bb0debdd 100644 --- a/nuttx/arch/sim/src/up_devconsole.c +++ b/nuttx/arch/sim/src/up_devconsole.c @@ -33,9 +33,9 @@ * ************************************************************/ -#ifndef linux +#if !defined(linux) && !defined(__CYGWIN__) # error "Sorry, this will only work with Linux" -#endif +#else /************************************************************ * Included Files @@ -138,3 +138,6 @@ int up_putc(int ch) (void)up_write(1, &b, 1); return ch; } + +#endif /* linux */ + |