Fix serialdump.c

_GNU_SOURCE is needed for O_DIRECT
time.h is needed for strftime
This commit is contained in:
Moritz 'Morty' Strübe 2015-05-05 18:14:35 +02:00
parent 016bcdb8a8
commit d26afef966
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <termios.h>
@ -6,6 +7,7 @@
#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define BAUDRATE B57600
#define BAUDRATE_S "57600"