mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Avoid use of struct serial_struct on systems which don't have it (Android)
This fixes bug #376.
This commit is contained in:

committed by
Uwe Hermann

parent
5bd33b7c8b
commit
12056e2f75
@ -122,6 +122,10 @@ AC_CHECK_MEMBERS([struct termios2.c_ispeed, struct termios2.c_ospeed],
|
||||
# Check for readlinkat.
|
||||
AC_CHECK_FUNC([readlinkat], [AC_DEFINE(HAVE_READLINKAT, 1)], [])
|
||||
|
||||
# Check for serial_struct.
|
||||
AC_CHECK_TYPE([struct serial_struct], [AC_DEFINE(HAVE_SERIAL_STRUCT, 1)],
|
||||
[], [[#include <linux/serial.h>]])
|
||||
|
||||
saved="$CFLAGS"; CFLAGS="$CFLAGS -Werror"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
||||
__attribute__((visibility("hidden"))) void foo(void) { }
|
||||
|
Reference in New Issue
Block a user