summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/elo.c4
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 <errno.h>
+
#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" );