diff options
author | ng0 <ng0@n0.is> | 2019-11-19 17:30:32 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-19 17:30:32 +0000 |
commit | 7c14b80a011e9e99b1cef0bfd96bae364edd5663 (patch) | |
tree | 9b4d0714c179b434117aad6fe6a65bc023ba04f9 /src/util | |
parent | 1b296cf77a90930e29bd60c0aef70b8efbb1bd24 (diff) | |
download | gnunet-7c14b80a011e9e99b1cef0bfd96bae364edd5663.tar.gz gnunet-7c14b80a011e9e99b1cef0bfd96bae364edd5663.zip |
On *BSD the header file sys/param.h defines BSD. Drop unnecessary
BSD defines in the build-system. Furthermore add detection for
FreeBSD using the additional defines by FreeBSD.
Use !Linux where previously a list of BSDs was.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 47a0ed5c9..866dbc301 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -1505,7 +1505,7 @@ GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h) | |||
1505 | return GNUNET_SYSERR; | 1505 | return GNUNET_SYSERR; |
1506 | } | 1506 | } |
1507 | 1507 | ||
1508 | #if defined(FREEBSD) || defined(OPENBSD) || defined(DARWIN) | 1508 | #if ! defined(LINUX) || ! defined(GNU) |
1509 | return fsync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK; | 1509 | return fsync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK; |
1510 | #else | 1510 | #else |
1511 | return fdatasync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK; | 1511 | return fdatasync (h->fd) == -1 ? GNUNET_SYSERR : GNUNET_OK; |