From c5d07c556296c4411440a08f91a53c6e4a0e490b Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sat, 5 Apr 2008 02:29:51 -0300 Subject: [PATCH] Don't call xf86GetErrno(), instead use errno directly. --- src/elo.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/elo.c b/src/elo.c index d7b1003..5ed67f0 100644 --- a/src/elo.c +++ b/src/elo.c @@ -54,6 +54,8 @@ #include "config.h" #endif +#include + #define _elo_C_ /***************************************************************************** * Standard Headers @@ -159,7 +161,7 @@ SetupProc( pointer module, { xf86ErrorF ("ELO 2300 driver unable to open device\n"); *errmaj = LDR_NOPORTOPEN; - *errmin = xf86GetErrno (); + *errmin = errno; goto SetupProc_fail; } xf86ErrorFVerb( 6, "tty port opened successfully\n" ); -- 1.5.3.2