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
This commit is contained in:
parent
fe3fbd361d
commit
a9fdc1423e
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
# include <ctype.h>
|
||||
# include <unistd.h> // for close(2)
|
||||
# include <fcntl.h> // for open(2)
|
||||
#endif
|
||||
|
||||
#include <cassert> // 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue