nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 615 B view raw
1diff --git a/setserial.c b/setserial.c 2index fef6532768..b7cde26ac2 100644 3--- a/setserial.c 4+++ b/setserial.c 5@@ -10,11 +10,14 @@ 6 * Last modified: [tytso:19940520.0036EDT] 7 */ 8 9+#include <errno.h> 10+#include <fcntl.h> 11 #include <stdio.h> 12-#include <fcntl.h> 13+#include <stdlib.h> 14+#include <string.h> 15 #include <termios.h> 16-#include <string.h> 17-#include <errno.h> 18+#include <unistd.h> 19+#include <sys/ioctl.h> 20 21 #ifdef HAVE_ASM_IOCTLS_H 22 #include <asm/ioctls.h> 23@@ -714,7 +717,7 @@ 24 exit(1); 25 } 26 27-main(int argc, char **argv) 28+int main(int argc, char **argv) 29 { 30 int get_flag = 0, wild_intr_flag = 0; 31 int c;