Redefine fdatasync to fsync on Mac

This commit is contained in:
hedgecrw85 2020-04-01 22:55:06 -05:00
parent 2ca1073277
commit 9122adccea
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* PosixHelperFunctions.h
*
* Created on: Mar 10, 2015
* Last Updated on: Mar 07, 2019
* Last Updated on: Apr 01, 2020
* Author: Will Hedgecock
*
* Copyright (C) 2012-2020 Fazecast, Inc.
@ -68,6 +68,7 @@ void searchForComPorts(charTupleVector* comPorts);
// Apple-specific functionality
#elif defined(__APPLE__)
#define fdatasync(a) fsync(a)
#include <termios.h>
typedef speed_t baud_rate;