mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add compatibility ifdefs for unavailable functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13559 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -59,6 +59,10 @@
|
|||||||
#include "gnc-backend-file.h"
|
#include "gnc-backend-file.h"
|
||||||
#include "gnc-gconf-utils.h"
|
#include "gnc-gconf-utils.h"
|
||||||
|
|
||||||
|
#ifndef HAVE_STRPTIME
|
||||||
|
# include "strptime.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GNC_BE_DAYS "file_retention_days"
|
#define GNC_BE_DAYS "file_retention_days"
|
||||||
#define GNC_BE_ZIP "file_compression"
|
#define GNC_BE_ZIP "file_compression"
|
||||||
|
|
||||||
@@ -519,6 +523,7 @@ gnc_file_be_write_to_file(FileBackend *fbe,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_CHOWN
|
||||||
/* Don't try to change the owner. Only root can do
|
/* Don't try to change the owner. Only root can do
|
||||||
that. */
|
that. */
|
||||||
if(chown(tmp_name, -1, statbuf.st_gid) != 0)
|
if(chown(tmp_name, -1, statbuf.st_gid) != 0)
|
||||||
@@ -534,6 +539,7 @@ gnc_file_be_write_to_file(FileBackend *fbe,
|
|||||||
return FALSE; */
|
return FALSE; */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(unlink(datafile) != 0 && errno != ENOENT)
|
if(unlink(datafile) != 0 && errno != ENOENT)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user