From a9fdc1423e6819199e11c29fd7a5cd9db9f524bf Mon Sep 17 00:00:00 2001 From: oripel Date: Mon, 11 Oct 2004 21:24:54 +0000 Subject: [PATCH] Added missing #include statements for Linux git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3713 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/util.cpp b/Source/util.cpp index 98167656..f7a934d5 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -10,6 +10,8 @@ #ifndef _WIN32 # include +# include // for close(2) +# include // for open(2) #endif #include // for assert @@ -404,6 +406,7 @@ int wsprintf(char *s, const char *format, ...) { char *my_convert(const char *path) { + // TODO: (orip) ref. this func. to use std::string? char *converted_path = strdup(path); size_t len = strlen(path); @@ -526,3 +529,4 @@ string get_dir_name(const string& path) { return path; return path.substr(0, last_separator_pos); } +