mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Merge branch 'wip/pwithnall/fix-ftruncate64' into 'main'
tests: Fix fileutils build on FreeBSD and macOS See merge request GNOME/glib!3726
This commit is contained in:
commit
e67a36c479
@ -1486,8 +1486,11 @@ resize_file (const gchar *filename,
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
retval = _chsize_s (fd, size);
|
||||
#else
|
||||
#elif HAVE_FTRUNCATE64
|
||||
retval = ftruncate64 (fd, size);
|
||||
#else
|
||||
errno = ENOSYS;
|
||||
retval = -1;
|
||||
#endif
|
||||
if (retval != 0)
|
||||
{
|
||||
|
@ -646,6 +646,7 @@ functions = [
|
||||
'free_aligned_sized',
|
||||
'free_sized',
|
||||
'fsync',
|
||||
'ftruncate64',
|
||||
'getauxval',
|
||||
'getc_unlocked',
|
||||
'getfsstat',
|
||||
|
Loading…
Reference in New Issue
Block a user