libeatmydata
libeatmydata copied to clipboard
error: use of undeclared identifier 'O_DSYNC' on FreeBSD
Building on FreeBSD 11.4 fails with:
--- libeatmydata/la-libeatmydata.lo ---
CC libeatmydata/la-libeatmydata.lo
libeatmydata/libeatmydata.c:181:21: error: use of undeclared identifier 'O_DSYNC'
flags &= ~(O_SYNC|O_DSYNC);
O_DSYNC
does not exist on FreeBSD.
Maybe just a bit of
#ifndef O_DSYNC
#define O_DSYNC 0
#endif
will do?