aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsbutil/gnulib')
-rw-r--r--libsbutil/gnulib/xgetcwd.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libsbutil/gnulib/xgetcwd.h b/libsbutil/gnulib/xgetcwd.h
index 765fab4..fbe0a7c 100644
--- a/libsbutil/gnulib/xgetcwd.h
+++ b/libsbutil/gnulib/xgetcwd.h
@@ -6,16 +6,12 @@
* Licensed under the GPL-2
*/
-_GL_INLINE_HEADER_BEGIN
-
extern char *egetcwd(char *buf, size_t size);
-_GL_INLINE char *xgetcwd(void)
+static inline char *xgetcwd(void)
{
char *ret = egetcwd(NULL, 0);
if (ret == NULL && errno == ENOMEM)
xalloc_die();
return ret;
}
-
-_GL_INLINE_HEADER_END