X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=include%2Fdevices%2Funixserial.h;h=c9be5830caaced3031728b47500f2da3a7ba26c9;hb=35acc80f23f9f81f3145a686a9c7df4b622b25fe;hp=b044d439fdcaa81534209fef54893d4ff221a819;hpb=833e1c7c90e13ceaba3dde8e7a36fcc8dfb1db3c;p=gnokii.git diff --git a/include/devices/unixserial.h b/include/devices/unixserial.h index b044d43..c9be583 100644 --- a/include/devices/unixserial.h +++ b/include/devices/unixserial.h @@ -24,18 +24,20 @@ #include "misc.h" -int serial_open(__const char *__file, int __oflag); -int serial_close(int __fd); +#ifndef UCLINUX +extern int serial_open(__const char *__file, int __oflag); +#endif /* UCLINUX */ +extern int serial_close(int __fd); -int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake); +extern int serial_opendevice(__const char *__file, int __with_odd_parity, int __with_async, int __with_hw_handshake); -void serial_setdtrrts(int __fd, int __dtr, int __rts); -void serial_changespeed(int __fd, int __speed); +extern void serial_setdtrrts(int __fd, int __dtr, int __rts); +extern void serial_changespeed(int __fd, int __speed); -size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes); -size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n); +extern size_t serial_read(int __fd, __ptr_t __buf, size_t __nbytes); +extern size_t serial_write(int __fd, __const __ptr_t __buf, size_t __n); -int serial_select(int fd, struct timeval *timeout); +extern int serial_select(int fd, struct timeval *timeout); #endif /* __devices_unixserial_h */