pkgsrc/cross/avrdude/patches/patch-ae
wennmach fb54ce400f avrdude - Program for programming the on-chip memory of Atmel AVR CPUs
Submitted by Karl Janmar <karlj@mdstud.chalmers.se> in PR 22139,
with several changes by myself. Original package from FreeBSD.
2003-07-17 19:09:23 +00:00

13 lines
456 B
Text

$NetBSD: patch-ae,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
--- ser_posix.c.org Tue Jul 8 11:11:06 2003
+++ ser_posix.c Tue Jul 8 11:11:22 2003
@@ -120,7 +120,7 @@
/*
* open the serial port
*/
- fd = open(port, O_RDWR | O_NOCTTY /*| O_NONBLOCK*/);
+ fd = open(port, O_RDWR | O_NOCTTY | O_NONBLOCK);
if (fd < 0) {
fprintf(stderr, "%s: serial_open(): can't open device \"%s\": %s\n",
progname, port, strerror(errno));