--- xournal-0.4.5/src/ttsubset/sft.c +++ xournal-0.4.5/src/ttsubset/sft.c @@ -47,6 +47,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #include "sft.h" #ifdef USE_GSUB #include "gsub.h" --- xournal-0.4.5/src/xo-file.c +++ xournal-0.4.5/src/xo-file.c @@ -25,6 +25,7 @@ #include "xo-misc.h" #include "xo-file.h" #include "xo-paint.h" +#include "xo-shapes.h" const char *tool_names[NUM_TOOLS] = {"pen", "eraser", "highlighter", "text", "", "selectrect", "vertspace", "hand"}; const char *color_names[COLOR_MAX] = {"black", "blue", "red", "green", --- xournal-0.4.5/src/xo-shapes.c +++ xournal-0.4.5/src/xo-shapes.c @@ -10,6 +10,7 @@ #include "xournal.h" #include "xo-shapes.h" #include "xo-paint.h" +#include "xo-misc.h" typedef struct Inertia { double mass, sx, sy, sxx, sxy, syy; --- xournal-0.4.5/src/xo-paint.h +++ xournal-0.4.5/src/xo-paint.h @@ -40,3 +40,5 @@ struct Item *click_is_in_text(struct Layer *layer, double x, double y); void refont_text_item(struct Item *item, gchar *font_name, double font_size); void process_font_sel(gchar *str); + +void subdivide_cur_path(null);