[Gnucash-changes] r13559 - gnucash/trunk/src/backend/file - Add
compatibility ifdefs for unavailable functions
Christian Stimming
cstim at cvs.gnucash.org
Thu Mar 9 11:06:50 EST 2006
Author: cstim
Date: 2006-03-09 11:06:49 -0500 (Thu, 09 Mar 2006)
New Revision: 13559
Trac: http://svn.gnucash.org/trac/changeset/13559
Modified:
gnucash/trunk/src/backend/file/gnc-backend-file.c
Log:
Add compatibility ifdefs for unavailable functions
Modified: gnucash/trunk/src/backend/file/gnc-backend-file.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-backend-file.c 2006-03-09 15:49:25 UTC (rev 13558)
+++ gnucash/trunk/src/backend/file/gnc-backend-file.c 2006-03-09 16:06:49 UTC (rev 13559)
@@ -59,6 +59,10 @@
#include "gnc-backend-file.h"
#include "gnc-gconf-utils.h"
+#ifndef HAVE_STRPTIME
+# include "strptime.h"
+#endif
+
#define GNC_BE_DAYS "file_retention_days"
#define GNC_BE_ZIP "file_compression"
@@ -519,6 +523,7 @@
return FALSE;
#endif
}
+#ifdef HAVE_CHOWN
/* Don't try to change the owner. Only root can do
that. */
if(chown(tmp_name, -1, statbuf.st_gid) != 0)
@@ -534,6 +539,7 @@
return FALSE; */
#endif
}
+#endif
}
if(unlink(datafile) != 0 && errno != ENOENT)
{
More information about the gnucash-changes
mailing list