From a30682ed7fbbb8ff05d6c5132ea8411e8aae43e1 Mon Sep 17 00:00:00 2001 From: neldoreth Date: Sat, 26 Dec 2009 17:57:46 +0100 Subject: [PATCH] Fix warning --- zathura.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zathura.c b/zathura.c index 6e6aa44..ded3a23 100644 --- a/zathura.c +++ b/zathura.c @@ -1,5 +1,7 @@ /* See LICENSE file for license and copyright information */ +#define _BSD_SOURCE || _XOPEN_SOURCE >= 500 + #include #include #include @@ -924,9 +926,12 @@ cmd_open(int argc, char** argv) Zathura.PDF.number_of_pages = poppler_document_get_n_pages(Zathura.PDF.document); Zathura.PDF.file = file; + Zathura.State.filename = file; set_page(1); + update_status(); + return TRUE; }