summaryrefslogtreecommitdiff
path: root/glib/poppler-attachment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'glib/poppler-attachment.cc')
-rw-r--r--glib/poppler-attachment.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/glib/poppler-attachment.cc b/glib/poppler-attachment.cc
index dd7064bf..ff09edcf 100644
--- a/glib/poppler-attachment.cc
+++ b/glib/poppler-attachment.cc
@@ -18,7 +18,8 @@
#include "config.h"
#include <errno.h>
-#include <glib/gstdio.h>
+
+#include <goo/gfile.h>
#include "poppler.h"
#include "poppler-private.h"
@@ -173,7 +174,7 @@ poppler_attachment_save (PopplerAttachment *attachment,
g_return_val_if_fail (POPPLER_IS_ATTACHMENT (attachment), FALSE);
- f = g_fopen (filename, "wb");
+ f = openFile (filename, "wb");
if (f == nullptr)
{