mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-16 06:06:16 +00:00
Added _GNU_SOURCE to fallocate test. (neheb)
This commit is contained in:
+2
-2
@@ -174,8 +174,8 @@ AC_DEFUN([TORRENT_WITHOUT_VARIABLE_FDSET], [
|
|||||||
AC_DEFUN([TORRENT_CHECK_FALLOCATE], [
|
AC_DEFUN([TORRENT_CHECK_FALLOCATE], [
|
||||||
AC_MSG_CHECKING(for fallocate)
|
AC_MSG_CHECKING(for fallocate)
|
||||||
|
|
||||||
AC_TRY_LINK([#include <fcntl.h>
|
AC_TRY_LINK([#define _GNU_SOURCE
|
||||||
#include <linux/falloc.h>
|
#include <fcntl.h>
|
||||||
],[ fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 0); return 0;
|
],[ fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 0); return 0;
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user