Skip to content

Commit

Permalink
Move sys/select.h include in the non-windows part.
Browse files Browse the repository at this point in the history
Update copyright header.
  • Loading branch information
neomilium committed Feb 9, 2010
1 parent ec9a13a commit 545a2d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib/buses/uart.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*-
* Public platform independent Near Field Communication (NFC) library
*
* Copyright (C) 2009, Roel Verdult
* Copyright (C) 2009, 2010, Roel Verdult, Romuald Conty
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
Expand All @@ -20,7 +20,9 @@

/**
* @file uart.c
* @brief
* @brief UART driver
*
* This file can be splitted in two parts: POSIX-like and Windows parts.
*/

/*
Expand All @@ -34,14 +36,14 @@ Based on RS232 code written by Teunis van Beelen available:

#include "uart.h"

#include <sys/select.h>

#include <nfc/nfc-messages.h>

// Test if we are dealing with unix operating systems
#ifndef _WIN32

#include <sys/select.h>
#include <termios.h>

typedef struct termios term_info;
typedef struct {
int fd; // Serial port file descriptor
Expand Down

0 comments on commit 545a2d6

Please sign in to comment.