diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-11-20 08:55:11 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-11-20 08:55:11 +0100 |
commit | 31d3de943cafc7cb72fd3e489fce40fc0e659f66 (patch) | |
tree | d29fa7a63b95304268a52e0bff82d5911e56f310 /src | |
parent | ad4a6a884089a7dce55fefc8e0aaaa9985fd6b30 (diff) |
core/serial: Fix warning when on platform other than linux
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serial.c b/src/serial.c index e61edb71..bc64b8ab 100644 --- a/src/serial.c +++ b/src/serial.c @@ -204,8 +204,8 @@ osmo_serial_set_custom_baudrate(int fd, int baudrate) int osmo_serial_clear_custom_baudrate(int fd) { - int rc; #ifdef __linux__ + int rc; struct serial_struct ser_info; rc = ioctl(fd, TIOCGSERIAL, &ser_info); |