mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46: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
|
#ifdef G_OS_WIN32
|
||||||
retval = _chsize_s (fd, size);
|
retval = _chsize_s (fd, size);
|
||||||
#else
|
#elif HAVE_FTRUNCATE64
|
||||||
retval = ftruncate64 (fd, size);
|
retval = ftruncate64 (fd, size);
|
||||||
|
#else
|
||||||
|
errno = ENOSYS;
|
||||||
|
retval = -1;
|
||||||
#endif
|
#endif
|
||||||
if (retval != 0)
|
if (retval != 0)
|
||||||
{
|
{
|
||||||
|
@ -646,6 +646,7 @@ functions = [
|
|||||||
'free_aligned_sized',
|
'free_aligned_sized',
|
||||||
'free_sized',
|
'free_sized',
|
||||||
'fsync',
|
'fsync',
|
||||||
|
'ftruncate64',
|
||||||
'getauxval',
|
'getauxval',
|
||||||
'getc_unlocked',
|
'getc_unlocked',
|
||||||
'getfsstat',
|
'getfsstat',
|
||||||
|
Loading…
Reference in New Issue
Block a user