1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Build: Clean up configure.ac and Makefile.am

Among other things, rename some config defines so we can take
advantage of standard Autoconf macros.
This commit is contained in:
Daniel Elstner
2015-08-26 21:42:32 +02:00
parent ef08a6d52b
commit f1c916ede1
7 changed files with 104 additions and 156 deletions

View File

@@ -178,7 +178,7 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***list)
{
char name[PATH_MAX], target[PATH_MAX];
struct dirent entry, *result;
#ifdef HAVE_SERIAL_STRUCT
#ifdef HAVE_STRUCT_SERIAL_STRUCT
struct serial_struct serial_info;
int ioctl_result;
#endif
@@ -218,11 +218,11 @@ SP_PRIV enum sp_return list_ports(struct sp_port ***list)
DEBUG("Open failed, skipping");
continue;
}
#ifdef HAVE_SERIAL_STRUCT
#ifdef HAVE_STRUCT_SERIAL_STRUCT
ioctl_result = ioctl(fd, TIOCGSERIAL, &serial_info);
#endif
close(fd);
#ifdef HAVE_SERIAL_STRUCT
#ifdef HAVE_STRUCT_SERIAL_STRUCT
if (ioctl_result != 0) {
DEBUG("ioctl failed, skipping");
continue;