diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 00:27:44 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 15:24:13 -0500 |
commit | ee65f15ec83da1fbadc3cb15c0cca5ba9c6eb508 (patch) | |
tree | f57b631a815784bfd5e6eb043105dfaeaddd0e9a /debian/patches/fix-ftbfs-shared-symbols.diff | |
parent | a8d1e1dab270ade9c8e7c841fc8e68f9f71f64a4 (diff) |
Merge changes from Ubuntu.
Diffstat (limited to 'debian/patches/fix-ftbfs-shared-symbols.diff')
-rw-r--r-- | debian/patches/fix-ftbfs-shared-symbols.diff | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/fix-ftbfs-shared-symbols.diff b/debian/patches/fix-ftbfs-shared-symbols.diff new file mode 100644 index 00000000..a25b3321 --- /dev/null +++ b/debian/patches/fix-ftbfs-shared-symbols.diff @@ -0,0 +1,46 @@ +Description: Make the strend function accessible + This patch makes the strend function accessible by removing the `inline` + prefix. +Author: Simon Quigley <tsimonq2@ubuntu.com> +Last-Update: 2017-06-19 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- +--- a/hardinfo/util.c ++++ b/hardinfo/util.c +@@ -113,7 +113,7 @@ gchar *seconds_to_string(unsigned int se + return g_strdup_printf(wdays, whours, wminutes); + } + +-inline gchar *size_human_readable(gfloat size) ++gchar *size_human_readable(gfloat size) + { + if (size < KiB) + return g_strdup_printf(_("%.1f B"), size); +@@ -129,7 +129,7 @@ inline gchar *size_human_readable(gfloat + return g_strdup_printf(_("%.1f PiB"), size / PiB); + } + +-inline char *strend(gchar * str, gchar chr) ++char *strend(gchar * str, gchar chr) + { + if (!str) + return NULL; +@@ -141,7 +141,7 @@ inline char *strend(gchar * str, gchar c + return str; + } + +-inline void remove_quotes(gchar * str) ++void remove_quotes(gchar * str) + { + if (!str) + return; +@@ -152,7 +152,7 @@ inline void remove_quotes(gchar * str) + strend(str, '"'); + } + +-inline void remove_linefeed(gchar * str) ++void remove_linefeed(gchar * str) + { + strend(str, '\n'); + } |