mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:33:25 +00:00
Make Linux compile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4b12f28ca4
commit
974ba1382d
1 changed files with 5 additions and 5 deletions
10
linux.c
10
linux.c
|
@ -30,8 +30,8 @@ const char *system_default_filename(void)
|
||||||
char *buffer;
|
char *buffer;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
home = g_get_home_dir();
|
home = getenv("HOME");
|
||||||
user = g_get_user_name();
|
user = getenv("LOGNAME");
|
||||||
len = strlen(home) + strlen(user) + 17;
|
len = strlen(home) + strlen(user) + 17;
|
||||||
buffer = malloc(len);
|
buffer = malloc(len);
|
||||||
snprintf(buffer, len, "%s/subsurface/%s.xml", home, user);
|
snprintf(buffer, len, "%s/subsurface/%s.xml", home, user);
|
||||||
|
@ -49,17 +49,17 @@ const char *subsurface_gettext_domainpath(char *argv0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void subsurface_command_line_init(gint *argc, gchar ***argv)
|
void subsurface_command_line_init(int *argc, char ***argv)
|
||||||
{
|
{
|
||||||
/* this is a no-op */
|
/* this is a no-op */
|
||||||
}
|
}
|
||||||
|
|
||||||
void subsurface_command_line_exit(gint *argc, gchar ***argv)
|
void subsurface_command_line_exit(int *argc, char ***argv)
|
||||||
{
|
{
|
||||||
/* this is a no-op */
|
/* this is a no-op */
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean subsurface_os_feature_available(os_feature_t f)
|
bool subsurface_os_feature_available(os_feature_t f)
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue