summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-06-29 16:07:49 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-06-29 16:07:49 (GMT)
commit65ef60d2b5ac0a39a14538b8abab5cdd9da6fad6 (patch)
tree82dc1fccd8e0ea958664ec50738c7b3c46550c36 /gtk
parentb208c60dddc639cfce3333f39ca542f34777407a (diff)
downloadnetsurf-65ef60d2b5ac0a39a14538b8abab5cdd9da6fad6.tar.gz
netsurf-65ef60d2b5ac0a39a14538b8abab5cdd9da6fad6.tar.bz2
Fix missing unistd includes to allow building with older headers
Diffstat (limited to 'gtk')
-rw-r--r--gtk/toolbar.c1
-rw-r--r--gtk/viewdata.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/gtk/toolbar.c b/gtk/toolbar.c
index 2345f56..d37d989 100644
--- a/gtk/toolbar.c
+++ b/gtk/toolbar.c
@@ -17,6 +17,7 @@
*/
#include <string.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "desktop/browser.h"
diff --git a/gtk/viewdata.c b/gtk/viewdata.c
index 7cd640f..bb8f86f 100644
--- a/gtk/viewdata.c
+++ b/gtk/viewdata.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include <unistd.h>
#include <gtk/gtk.h>
#include "utils/log.h"
@@ -826,7 +827,7 @@ editor_init_fname(const char *title,
int veci;
/* desktop file of default app for mimetype */
char *def_app_desktop = NULL;
- char *exec_cmd;
+ char *exec_cmd = NULL;
char **argv;
/* build string vector of search path */