summaryrefslogtreecommitdiffstats
path: root/src/file_spf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_spf.c')
-rw-r--r--src/file_spf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_spf.c b/src/file_spf.c
index df7073a..3480df3 100644
--- a/src/file_spf.c
+++ b/src/file_spf.c
@@ -74,7 +74,11 @@ static void file_check_spf(file_recovery_t *file_recovery)
unsigned char*buffer;
buffer=(unsigned char*)MALLOC(READ_SIZE);
file_recovery->file_size=0;
+#ifdef HAVE_FSEEKO
+ if(fseeko(file_recovery->handle, 0, SEEK_SET)<0)
+#else
if(fseek(file_recovery->handle, 0, SEEK_SET)<0)
+#endif
{
free(buffer);
return;