1 |
commit: e2f06703fe28a3dcc70b847d3b7723bf5c346763 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 26 23:42:05 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 23:42:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=e2f06703 |
7 |
|
8 |
libsbutil: gnulib: mark xgetcwd static inline |
9 |
|
10 |
Rather than use gnu inline where gcc can create external references |
11 |
(which we don't provide), just always inline the xgetcwd func. This |
12 |
fixes building at -O0 optimization levels. |
13 |
|
14 |
URL: https://bugs.gentoo.org/561342 |
15 |
Reported-by: Pryka <pryka.iluvatar <AT> gmail.com> |
16 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
17 |
|
18 |
libsbutil/gnulib/xgetcwd.h | 6 +----- |
19 |
1 file changed, 1 insertion(+), 5 deletions(-) |
20 |
|
21 |
diff --git a/libsbutil/gnulib/xgetcwd.h b/libsbutil/gnulib/xgetcwd.h |
22 |
index 765fab4..fbe0a7c 100644 |
23 |
--- a/libsbutil/gnulib/xgetcwd.h |
24 |
+++ b/libsbutil/gnulib/xgetcwd.h |
25 |
@@ -6,16 +6,12 @@ |
26 |
* Licensed under the GPL-2 |
27 |
*/ |
28 |
|
29 |
-_GL_INLINE_HEADER_BEGIN |
30 |
- |
31 |
extern char *egetcwd(char *buf, size_t size); |
32 |
|
33 |
-_GL_INLINE char *xgetcwd(void) |
34 |
+static inline char *xgetcwd(void) |
35 |
{ |
36 |
char *ret = egetcwd(NULL, 0); |
37 |
if (ret == NULL && errno == ENOMEM) |
38 |
xalloc_die(); |
39 |
return ret; |
40 |
} |
41 |
- |
42 |
-_GL_INLINE_HEADER_END |