$OpenBSD: patch-src_main_c,v 1.4 2013/03/27 12:14:28 gonzalo Exp $
--- src/main.c.orig	Sat Feb 11 10:24:25 2012
+++ src/main.c	Wed Dec 12 09:06:00 2012
@@ -23,6 +23,9 @@
 #include <config.h>
 #endif
 
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <termios.h>
 #include "port.h"
 #include "minicom.h"
 #include "intl.h"
@@ -304,6 +307,17 @@ nolock:
 
   /* Set CLOCAL mode */
   m_nohang(portfd);
+
+ /* maybe, just maybe, we're looking at a GPS */
+ do {
+   int nmeadisc = NMEADISC;
+   struct tstamps tstamps;
+
+   tstamps.ts_set = TIOCM_CAR;
+   tstamps.ts_clr = 0;
+   ioctl(portfd, TIOCSETD, &nmeadisc);
+   ioctl(portfd, TIOCSTSTAMP, &tstamps);
+ } while (0);
 
   /* Set Hangup on Close if program crashes. (Hehe) */
   m_hupcl(portfd, 1);
