Copy from Base:System/setserial based on submit request 44218 from user coolo OBS-URL: https://build.opensuse.org/request/show/44218 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/setserial?expand=0&rev=8
32 lines
886 B
Diff
32 lines
886 B
Diff
Index: setserial-2.17/setserial.c
|
|
===================================================================
|
|
--- setserial-2.17.orig/setserial.c 2010-07-30 09:28:55.000000000 +0200
|
|
+++ setserial-2.17/setserial.c 2010-07-30 09:49:14.371153168 +0200
|
|
@@ -359,7 +359,7 @@ void set_multiport(char *device, int fd,
|
|
}
|
|
#endif
|
|
|
|
-#ifdef TIOCGHAYESESP
|
|
+#ifdef HAVE_LINUX_HAYESESP_H
|
|
void print_hayesesp(int fd)
|
|
{
|
|
struct hayes_esp_config esp;
|
|
@@ -456,7 +456,7 @@ int get_serial(char *device)
|
|
print_flags(&serinfo, "\tFlags: ", "");
|
|
printf("\n\n");
|
|
|
|
-#ifdef TIOCGHAYESESP
|
|
+#ifdef HAVE_LINUX_HAYESESP_H
|
|
print_hayesesp(fd);
|
|
#endif
|
|
} else if (verbosity==0) {
|
|
@@ -598,7 +598,7 @@ int set_serial(char *device, char ** arg
|
|
}
|
|
set_multiport(device, fd, &arg);
|
|
break;
|
|
-#ifdef TIOCGHAYESESP
|
|
+#ifdef HAVE_LINUX_HAYESESP_H
|
|
case CMD_RX_TRIG:
|
|
case CMD_TX_TRIG:
|
|
case CMD_FLOW_OFF:
|