diff options
Diffstat (limited to 'nuttx/arch/arm/src/dm320/dm320_serial.c')
-rw-r--r-- | nuttx/arch/arm/src/dm320/dm320_serial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/dm320/dm320_serial.c b/nuttx/arch/arm/src/dm320/dm320_serial.c index fbeefd8e9..5b944b9b7 100644 --- a/nuttx/arch/arm/src/dm320/dm320_serial.c +++ b/nuttx/arch/arm/src/dm320/dm320_serial.c @@ -2,7 +2,7 @@ * arch/arm/src/dm320/dm320_serial.c * arch/arm/src/chip/dm320_serial.c * - * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -546,6 +546,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) switch (cmd) { +#ifdef CONFIG_SERIAL_TIOCSERGSTRUCT case TIOCSERGSTRUCT: { struct up_dev_s *user = (struct up_dev_s*)arg; @@ -559,6 +560,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) } } break; +#endif case TIOCSBRK: /* BSD compatibility: Turn break on, unconditionally */ { |