Move sys/select.h include in the non-windows part.
Update copyright header.
This commit is contained in:
parent
ec9a13a2c3
commit
545a2d6f28
@ -1,7 +1,7 @@
|
|||||||
/*-
|
/*-
|
||||||
* Public platform independent Near Field Communication (NFC) library
|
* 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
|
* 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
|
* under the terms of the GNU Lesser General Public License as published by the
|
||||||
@ -20,7 +20,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @file uart.c
|
* @file uart.c
|
||||||
* @brief
|
* @brief UART driver
|
||||||
|
*
|
||||||
|
* This file can be splitted in two parts: POSIX-like and Windows parts.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -34,14 +36,14 @@ http://www.teuniz.net/RS-232/index.html
|
|||||||
|
|
||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
|
|
||||||
#include <sys/select.h>
|
|
||||||
|
|
||||||
#include <nfc/nfc-messages.h>
|
#include <nfc/nfc-messages.h>
|
||||||
|
|
||||||
// Test if we are dealing with unix operating systems
|
// Test if we are dealing with unix operating systems
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
|
#include <sys/select.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
typedef struct termios term_info;
|
typedef struct termios term_info;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int fd; // Serial port file descriptor
|
int fd; // Serial port file descriptor
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user